laptop and a wrench

Bug

Recreating a spatial index on a ST_GEOMETRY layer by way of SQL does not update grid values stored in SDE.LAYERS.

Last Published: August 25, 2014 No Product Found
Bug ID Number NIM013424
SubmittedDecember 3, 2007
Last ModifiedApril 28, 2025
Applies toNo Product Found
Version found9.2
Version Fixed9.3
StatusFixed

Description

Creating or altering an st_spatial_index's grid size using SQL results in the ArcSDE layer's grid metadata no longer matching the actual st_geometry attribute's grid values.

When the spatial index's grid values do not match ArcSDE layer's grid values, spatial queries from ArcGIS return incorrect results.

Cause

Using SQL to CREATE or ALTER an st_spatial_index for layers that are registered with ArcSDE and setting the parameter grid values to a size that does not match the grid values in the sde.layers table, causes invalid grid values to be set for ArcGIS spatial queries.

Workaround

Using ArcGIS to change a layer's spatial index's grid size is the recommended method for changing an st_geometry layer's grid size.

If the st_spatial_index grid values have already been modified using SQL, ArcCatalog can still be used to set the appropriate grid size values and rebuild the spatial index.

    Steps to Reproduce

    Bug ID: NIM013424

    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