I'm trying to run some geoprocessing functions in ArcObjects. Some of the tools I want to use are part of the spatial analyst extension. In 9.3.1 it was fairly straightforward to follow the documentation and execute geoprocessing tools in ArcObjects. In ArcGIS it seems all the spatial analyst tools are only available through the arcpy.sa site package. The tools still exist in the arctoolbox with a standard parameter for the output raster. But all the documentation on the tools show the output as a raster object not a standard parameter. When I try and execute the tool in ArcObjects it fails because it doesn't expect a return and as far as I can tell there is no parameter for the output raster. Anyone trying to run spatial analyst geoprocessing tools from ArcObjects in 10?
Tell me more
×
Geographic Information Systems Stack Exchange is a question and answer site for
cartographers, geographers and GIS professionals. It's 100% free, no registration required.
|
|
Are you using the (relatively) new Geoprocessor class?
If you look at the geoprocessor library of AO you will find the Spatial Analyst tools, too. |
|||
|
|
|
If all you are trying to do is to use existing Spatial Analyst's functions, and the sole motivation in doing this is to automate your geo processing through scripting, then i would suggest using the |
|||
|
|
Just a thought; you could build a model then run it from within a procedure. |
|||
|
|