PROBLEM
The Spatial Analyst sample script, grextrct.ave, gives incorrect results.
The extent of the output grid is not properly set to that of the shape.
Code:
ae = theView.GetExtension(AnalysisEnvironment)
ae.SetExtent(#ANALYSISENV_VALUE, ashpext)
ae.SetCellSize(#ANALYSISENV_VALUE, g.getcellsize)
Code:
grid.setanalysisextent(#GRID_ENVTYPE_VALUE,ashpext)
grid.setanalysiscellsize(#GRID_ENVTYPE_VALUE,g.getcellsize)
Article ID:000004328
Get help from ArcGIS experts
Download the Esri Support App