Remove Spatial Index (Data Management) |
|
Release 9.2
Last modified November 29, 2010 |
![]() ![]() ![]() Print all topics in : "Tools" |
Deletes the spatial index from a shapefile, file geodatabase feature class, or an ArcSDE feature class. The spatial index cannot be deleted from a personal geodatabase.
Spatial indexes are used by ArcGIS to quickly locate features that match a spatial query. For information on spatial indexes in geodatabases, see Setting spatial indexes. For information on spatial indexes in shapefiles, see Creating and updating indexes in shapefiles.
Usage tips
The spatial index cannot be deleted from an ArcSDE feature class that is versioned.
ArcGIS automatically rebuilds the spatial index at the end of certain operations in file and ArcSDE geodatabases to ensure the index is optimal. To learn how ArcGIS manages the spatial index, see Setting spatial indexes.
The following environment affects this tool: workspace.
Command line syntax
An overview of the Command Line window
RemoveSpatialIndex_management <in_features>
Parameter | Explanation | Data Type |
<in_features> |
The features from which the spatial index will be removed. |
Feature Layer | Raster Catalog Layer |
removespatialindex "Database Connections\Connection to esoracle.sde\LPI.Land\LPI.PLSSFirstDivision"
Scripting syntax
About getting started with writing geoprocessing scripts
RemoveSpatialIndex_management (in_features)
Parameter | Explanation | Data Type |
in_features (Required) |
The features from which the spatial index will be removed. |
Feature Layer | Raster Catalog Layer |
import arcgisscripting gp = arcgisscripting.create() # Set a default workspace gp.workspace = "c:/test_data" # Set a default workspace gp.toolbox = "management" try: # Remove a spatial index from an SDE feature class. gp.removespatialindex ("Database Connections/Connection to esoracle.sde/LPI.Land\LPI.PLSSFirstDivision") except: # If an error occurs when running removespatialindex, print out the error message. print gp.GetMessages(2)