1,781 reputation
314
bio website
location Mankato, MN
age 28
visits member for 2 years, 9 months
seen 10 hours ago

LinkedIn

Recently developed a python package to interact with the ArcGIS REST API


1d
answered Is there a quick way to see the fields in a table via arcpy?
May
22
answered why there is no attribute like 'GetNAClassNames' in my arcpy
May
19
awarded  Explainer
May
19
revised AttributeError: __exit__ when trying to use arcpy.UpdateCursor
formatted code
May
19
answered AttributeError: __exit__ when trying to use arcpy.UpdateCursor
May
19
suggested approved edit on AttributeError: __exit__ when trying to use arcpy.UpdateCursor
May
19
comment Set polygon boarders to transparent in python
You cannot control the symbology explicitly with arcpy. What you can do is save a Layer File (.lyr) with that symbology and then use arcpy.management.ApplySymbologyFromLayer where you would reference your .lyr file.
May
15
comment How to edit PostgreSQL geodatabase table using ArcPy?
Thank you for posting this...This is definitely something ESRI needs to put in their documentation.
May
12
comment Unable to add attachment to ArcGIS Online feature service using Python and REST API
I agree, the help on adding attachments was not very useful. I just happened to get lucky and find the Multi-Part Encoded file help in the requests documentation. If you haven't used Fiddler, I would recommend it. Very useful for inspecting web traffic, especially when making calls with Python as there is no web interface.
May
12
comment Unable to add attachment to ArcGIS Online feature service using Python and REST API
I edited my answer to include a link to my restapi repo on GitHub. This provides a much easier interface. Once you make a reference to a FeatureLayer, you can simply pass in an OID and path to an attachment when calling the addAttachment method.
May
12
revised Unable to add attachment to ArcGIS Online feature service using Python and REST API
added 808 characters in body
May
12
answered Unable to add attachment to ArcGIS Online feature service using Python and REST API
May
11
comment Efficient ways to read table data from a large feature layer?
Why not use the arcpy.da.UpdateCursor? They are pretty fast.
May
7
answered Script won't delete feature classes from file database using ArcPy?
May
7
answered Best way to delete many fields from many feature classes using arcpy?
May
6
comment How to remove a specific unique value with arcpy
If the values are always the same, couldn't you just make a new .lyr file with the same symbology but remove the unique value of 70? Then you can use the arcpy.management.ApplySymbologyFromLayer() function to overwrite the symbology.
May
5
comment Deleting output shapefiles which have no data/features using ArcPy?
Weird try explicitly checking to see if the count is greater than 0: if int(arcpy.management.GetCount(fc).getOutput(0)) > 0:
May
5
answered Deleting output shapefiles which have no data/features using ArcPy?
Apr
30
comment Export geodatabase relationship to shapefile
The parameters are defined at the top of the function in the doc string. However, after seeing the post where this issue was addressed earlier, I would abandon this script. All you have to do is join your features to the related table using the "Keep only matching" option, and then use the Copy Features tool from the data management toolbox. That will automatically create duplicate features.
Apr
29
comment Export geodatabase relationship to shapefile
It works for me every time. This needs to be made into a script tool or you can run the function in the ArcMap Python window, but you need to pass in the parameters yourself. What error message do you get?