A quick tour of setting a spatial index

The spatial index is used to locate features quickly when you display, edit, or query data. Therefore, a spatial index is important, especially when you are working with large amounts of data.

Spatial indexes work differently depending on the data source. Personal, file and enterprise geodatabases in DB2, enterprise geodatabases in Oracle and SQL Server that use binary geometry storage, and enterprise geodatabases in Oracle that use ST_Geometry storage use a grid-based spatial index. Oracle Spatial, Informix, and PostgreSQL do not use grid sizes—they use an R-tree index. Similarly, feature classes that use SQL Server spatial types do not use an Esri spatial grid index.

How ArcGIS maintains spatial indexes

ArcGIS automatically rebuilds the spatial index at the end of certain operations in file, enterprise, workgroup, and desktop geodatabases to ensure that the index is optimal. The following explains how ArcGIS manages the spatial index:

When to update the spatial index

Because ArcGIS maintains the spatial index in file, enterprise, workgroup, and desktop geodatabases, you seldom need to re-create the spatial index manually. Re-creation of the spatial index is recommended only in the following rare situation:

Spatial indexes in personal geodatabases

Whenever you create a feature class in a personal geodatabase, whether with the New Feature Class wizard, a geoprocessing tool, or any other method, the spatial index will be calculated for you by ArcGIS and cannot be modified. The spatial index is based on the horizon of the feature class coordinate system and will always be optimal.

Related Topics

3/13/2015