I'm learning ArcPy and trying to export models to Python scripts to get a feel for it. I have a model that generalizes a land cover raster by reclassifying and using some other spatial analyst tools (boundary clean, region group, extract by attributes, and nibble). When I export my model each function is under arcpy.gp, e.g.:
arcpy.gp.Reclassify_sa(...)
arcpy.gp.BoundaryClean_sa(...)
arcpy.gp.RegionGroup_sa(...)
And so on. I gather this means "Use the geoprocessing tool Reclassify from the Spatial Analyst extension" but I can't find any documentation for it. I can find arcpy.sa.Reclassify
but not the arcpy.gp
version. Does anyone know where to look?
1 Answer 1
Where I think you should expect to find the gp
module to be documented is via the left hand panel of A quick tour of ArcPy.
However, as you can see it appears not to be documented.
You could submit an ArcGIS Idea to have this addressed for the ArcGIS Desktop architecture but, if it is still an issue for the ArcGIS Pro architecture then it may be better to make that your target.
-
1Thanks for the thorough answer and the pointer to ArcGIS Idea. I don't have access to ArcGIS Pro at this time so I'll submit something for ArcGIS Desktop.Corned Beef Hash Map– Corned Beef Hash Map2017年02月13日 23:03:26 +00:00Commented Feb 13, 2017 at 23:03
Explore related questions
See similar questions with these tags.
sa
in your script. Read this: geonet.esri.com/thread/146373sa
. You don't need documentation forgp
since it'd be the exact same.