Interface AbstractVectorSource.HasUseSpatialIndex
- All Known Subinterfaces:
AbstractVectorSource.HasVectorSourceOptions
- All Known Implementing Classes:
DataVectorSource
,NoOpVectorSource
,VectorSource
- Enclosing class:
- AbstractVectorSource
public static interface AbstractVectorSource.HasUseSpatialIndex
Interface to be implemented by sources that should provide useSpatialIndex attribute management.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setUseSpatialIndex
(Boolean useSpatialIndex) Sets whether to use spatial index.
-
Method Details
-
getUseSpatialIndex
Boolean getUseSpatialIndex()- Returns:
- useSpatialIndex value or
null
if not set
-
setUseSpatialIndex
Sets whether to use spatial index. When features are removed and added frequently, and the total number of features is low, setting this tofalse
may improve performance. The default value istrue
.- Parameters:
useSpatialIndex
- whether to use spatial index
-