laptop and a wrench

Bug

Edit the Calculate Default Grid Index Example script so that it runs without error.

Last Published: August 19, 2020 No Product Found
Bug ID Number NIM083648
SubmittedAugust 9, 2012
Last ModifiedApril 8, 2026
Applies toNo Product Found
Version found10.0
StatusWill Not Be Addressed

Additional Information

We apologize that we were unable to address this issue within the current product support cycle.  If the issue continues to affect your work in a supported release, please contact Technical Support.

Workaround

1) Remove the following lines from the script: # Get the grid sizes from the tool, this is a string with 3 semi-colon separated values (typically something like "1500; 0; 0") result = arcpy.CalculateDefaultGridIndex_management(inFeatures) indexGrids = [] for count in range(0, result.outputCount): indexGrids.append(result.getOutput(count))2) Change the parameters of the AddSpatialIndex_management command to exclude indexGrids as the second parameter. (The default grids sizes will be automatically compute optimal sizes.) E.g. arcpy.AddSpatialIndex_management(inFeatures)

Steps to Reproduce

Bug ID: NIM083648

Software:

  • No Product Found

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options