spatialIndexEnabled property

bool spatialIndexEnabled

True if the shapefile has a spatial index, false otherwise.

The spatial indexes for a shapefile are stored in .sbn and .sbx files. Usually they are created by ArcGIS Pro. Having a current spatial index ensures that a high level of performance is maintained when drawing and working with the shapefile's features and that the shapefile's extent is accurate.

Implementation

bool get spatialIndexEnabled {
  return _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ShapefileFeatureTable_getSpatialIndexEnabled(
      _handle,
      errorHandler,
    );
  });
}