|
POST
|
Can you upload an example of what you've written so far? There would be a number of ways you could implement the logic needed for this and we'd need to see how you beginning this task to give you an appropriate response.
... View more
12-07-2015
03:18 PM
|
0
|
3
|
1060
|
|
POST
|
Is there a particular reason why you're using the pyc files? Without using those an addin created in 10.0 would be forward compatible with any higher 10.X release.
... View more
12-07-2015
09:15 AM
|
1
|
2
|
2492
|
|
POST
|
ArcObjects would allow you to build custom gp tools in the same manner that you build them in python. The python toolbox and python script tool workflows are essentially a watered down version of what you can do in ArcObjects. Building a custom geoprocessing function tool http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Building_a_custom_geoprocessing_function_tool/00010000049w000000/
... View more
12-07-2015
09:11 AM
|
0
|
0
|
1912
|
|
POST
|
Is your python addin calling the above script? Can you show have you're calculating the path to the geodatabase? Are you just pointing to a known location or did you include the data within the addin structure?
... View more
12-07-2015
09:01 AM
|
0
|
2
|
1426
|
|
POST
|
No problem. Without using ArcObjects directly I don't think you'd be able to accomplish this in a supported manner until these functionalities are added to the arcpy module. Otherwise, the ArcObjects code could easily be wrapped into a custom gp tool, published to the server as a gp service, and called from any client that can communicate with REST.
... View more
12-07-2015
08:47 AM
|
0
|
2
|
1912
|
|
POST
|
Connecting to geodatabases and databases http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Connecting_to_geodatabases_and_databases/0001000003s8000000/ Creating feature classes http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Creating_feature_classes/000100000419000000/ Opening datasets http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Opening_datasets/0001000001vp000000/ Building a custom Geoprocessing function tool http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Building_a_custom_geoprocessing_function_tool/00010000049w000000/
... View more
12-06-2015
09:46 PM
|
0
|
0
|
392
|
|
POST
|
I'll have to take a look at this one when I get to the office tomorrow, but this is what I'm thinking right now. Let's say that you had a domain with the following information. Code Value No 0 Yes 1 Maybe 2 Let's call this domain "UserResponse" and say that the type of the field that stores the value is Integer, but we're displaying strings for the codes. I would expect that if I were to use a cursor to grab the values from the database that it would return the actual value of the field (i.e. the integer values of 0, 1, or 2) instead of the coded value string. I know that if we were to edit these values in ArcMap that we could pick the coded value strings from the dropdown and the software would convert them to their actual values, but I'm not sure if a cursor would natively do the same thing.
... View more
12-06-2015
09:36 PM
|
0
|
0
|
999
|
|
POST
|
Hi Dan, I've been having some real problems with GeoNET and links lately and I'm also getting an error with the link you provided. I'm going to talk with Timothy Hales about it tomorrow, but GeoNET appears to really hate when I answer questions from Microsoft Edge on my Windows 10 machine and Safari on my Mac. Typically I have to write my responses, post them, and then edit them a couple of times to get the links to work.
... View more
12-06-2015
09:26 PM
|
1
|
2
|
1970
|
|
POST
|
I'm still not sure if I completely understand what you're needing to accomplish. Could you upload a simplified version of your code that shows what you're doing within an addin? I'm hoping that you'd be able to display this within a single file using 100 or less lines of code. I'm guessing that you're drawing a graphic on the screen and it's getting cleared after the refresh is called.
... View more
12-06-2015
09:23 PM
|
0
|
1
|
1406
|
|
POST
|
Are you still unable to upload your data to geonet? If so, let me know and I can provide you with credentials to a secure ftp server where you can upload the data and I can take a quick look at it. Prior to uploading the data I'll need you to remove any confidential information.
... View more
12-06-2015
09:18 PM
|
0
|
1
|
2291
|
|
POST
|
Are you needing to write this within an addin and if you debug this can you verify that you're pulling the first layer from the map? Also, what is your end goal? Are you trying to get all of the unique values in a field? If so, have you tried using IDataStatistics?
... View more
12-06-2015
03:28 PM
|
0
|
0
|
625
|
|
POST
|
You should be able to get the position of the element on the page from each element object. For example, if you look on the following page for GraphicElement you'll see that there are elementHeight and elementWidth properties. You could get the anchor for the element from the elementPositionX and elementPositionY, but you'd have to know in advance where the anchor is so that you'd be able to do the needed math to determine the extents of the element on the page. GraphicElement http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-mapping/graphicelement-class.htm
... View more
12-06-2015
03:20 PM
|
0
|
4
|
1970
|
|
POST
|
What happens when you have data that already has GUIDs and you load it another feature class with the Simple Data Loader or Object Loader? Does it persist the GUIDs. I'm looking at the ArcObjects code and I'm pretty sure that you won't have anything available to this extent unless you want to invest in learning how to use the comtypes library to access the ArcObjects libraries from python. Otherwise, Visual Studio is free and if you're familiar with using C# it wouldn't be too hard to take the information off the page you've linked to and build a console application from it, which you could interact with from python. Luckily 97% of what you'd need to write is already included on the page.
... View more
12-06-2015
03:14 PM
|
2
|
1
|
1010
|
|
POST
|
Are you asking how to take a geodatabase feature class and export it to a table within a personal geodatabase or pure access database? I would assume based on the fields you've listed in requirement two that this would have to be a table within a pure access database because 1) a personal geodatabase wouldn't allow you to call the OID field UNI_ID and 2) the specifications lack a SHAPE field. Depending on your experience with python this workflow will vary. If I had to execute this I would use cursors to dynamically reproject the data and then use 3rd party libraries, such as pyodbc, to execute INSERT statements to load the records into the Access database. SearchCursor (arcpy.da) http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-data-access/searchcursor-class.htm Python ODBC library https://code.google.com/p/pyodbc/wiki/GettingStarted You'll want to note with the cursor that you can specify the spatial reference. This will allow you to project the data on-the-fly without having to create additional output. There are also other tools available that would allow you hydrate fields with these values without having to create additional data. If you were writing to a geodatabase (personal, file, or enterprise) or flat-file that esri supports writing to you could easy use an Insert Cursor to upload the data. If you're really using an Access Database I would assume that writing to it would be unsupported and would most likely corrupt it because the software would try to treat it like a personal geodatabase and add our repository tables to it. The alternative to this workflow would be the manual approach, which you could automate some of the steps. Project the data to WGS84 and add the XY Coordinates or calculate the values against the source data. Project (Data Management) http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/project.htm Calculate Field (Data Management) https://pro.arcgis.com/en/pro-app/tool-reference/data-management/calculate-field.htm Convert Coordinate Notation http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/convert-coordinate-notation.htm Load data into table Personal Geodatabase - Use the append tool to load the data Append (Data Management) http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/append.htm Access Database - Export the data to a flat-file that the database can read, such as csv, and determine if Microsoft provides a utility that would allow you to load it into the database. Table to Table (Conversion) http://desktop.arcgis.com/en/desktop/latest/tools/conversion-toolbox/table-to-table.htm
... View more
12-06-2015
03:04 PM
|
2
|
1
|
713
|
|
POST
|
If zip files don't work I'd suggest uploading a layer or map package.
... View more
12-06-2015
02:19 PM
|
0
|
0
|
2291
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-19-2016 04:45 AM | |
| 1 | 09-24-2015 06:45 AM | |
| 1 | 09-15-2015 10:49 AM | |
| 1 | 10-12-2015 03:07 PM | |
| 1 | 11-25-2015 09:10 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|