Reputation
2,214
Top tag
Next privilege 2,500 Rep.
Create tag synonyms
Badges
3 16
Newest
 arcpy
Impact
~21k people reached

Jul
30
comment How to set output parameter to a zip file in a custom geoprocessing function tool?
That's a good question. I am not sure. To me it seems like they should both work. DEFile is from esriDataSources so maybe it is better recognized as a data source. On the other hand, GPDataFile is from Geoprocessing, which seems like it would be a better option to use for a tool parameter. Both support the IGPValue interface as well.
Jul
29
reviewed Approve Why does the peak of a mountain appear bright on Radar images
Jul
29
awarded  arcpy
Jul
28
comment How to set output parameter to a zip file in a custom geoprocessing function tool?
Have you tried using the DEFile Class instead? It supports the IGPValue interface. This is designed for GP parameters. help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/…
Jul
28
comment How to check for empty values in fields of a featureclass?
Note, the second fields sample may be kind of slow using the 10.0 cursors, could handle it much faster if you had access to the arcpy.da cursors introduced at version 10.1
Jul
28
answered How to check for empty values in fields of a featureclass?
Jul
26
comment How do I get JSON data into Python script from a ArcGIS geoprocessing service?
Awesome! I just added a bunch more functionality, including a way to export a result feature set if the gp task has one. Hopefully it works for you.
Jul
26
revised How do I get JSON data into Python script from a ArcGIS geoprocessing service?
updated code sample
Jul
24
comment map(arcpy.AddError, traceback.format_exc().split(“\n”))
I have an answer explaining the map portion, but it seems like an error with the traceback if it returns ['None', ''] or no error at all?? In the latter case, the exception wouldn't be called in the first place. That seems strange.
Jul
24
answered map(arcpy.AddError, traceback.format_exc().split(“\n”))
Jul
24
answered How do I get JSON data into Python script from a ArcGIS geoprocessing service?
Jul
24
comment Python tools won't open when clicked on
It probably isn't recognizing it as a proper PYT because you have the methods it is looking for commented out. Try un-commenting them.
Jul
16
comment Fill in NoData gaps in raster using ArcGIS for Desktop?
You would be better off using the arcpy.sa.NbrCircle(radius, units) where the units can either be 'MAP' or 'CELL'.
Jul
14
comment Why is Python AddIn toolbar showing all “Missing” tools/buttons?
One problem I see is that in the CalcDrainArea class you're setting the shape attribute to an arcpy.Polygon. The pythonaddins module is looking for Circle, Line, or Rectangle. Also, as @Paul suggested, having the python window open will show bugs.
Jul
13
answered Export ArcGIS Online feature service with attachments
Jul
10
answered How do I specify a spatial reference when using da.InsertCursor?
Jul
8
comment Use Python to Find duplicate values in a feature Class and populate a field
Take the second code sample I provided and change the fc, fld, and up variables appropriately and it should work.
Jul
8
comment Use Python to Find duplicate values in a feature Class and populate a field
the inShapefile variable needs to point to a full data source path of your shapefile or feature class. Like this: inShapefile = r"C:\TEMP\test.shp"
Jul
8
revised Use Python to Find duplicate values in a feature Class and populate a field
added 775 characters in body
Jul
8
comment Use Python to Find duplicate values in a feature Class and populate a field
That's a good point. I'm too attached to dictionaries sometimes.