Class IndexedFeatureCollection

java.lang.Object
com.vividsolutions.jump.feature.FeatureCollectionWrapper
com.vividsolutions.jump.feature.IndexedFeatureCollection
All Implemented Interfaces:
FeatureCollection, Iterable<Feature>

public class IndexedFeatureCollection extends FeatureCollectionWrapper
An IndexedFeatureCollection creates a new collection which is backed by a FeatureCollection, but which is indexed for query purposes. In this implementation, Features cannot be added or removed (an Exception is thrown) and Features' Geometries should not be modified (otherwise they will be out of sync with the spatial index).
  • Constructor Details

    • IndexedFeatureCollection

      public IndexedFeatureCollection(FeatureCollection fc)
      Constructs an IndexedFeatureCollection wrapping the given FeatureCollection and using the default spatial index.
    • IndexedFeatureCollection

      public IndexedFeatureCollection(FeatureCollection fc, org.locationtech.jts.index.SpatialIndex spatialIndex)
      Constructs an IndexedFeatureCollection wrapping the given FeatureCollection and using the given empty spatial index.
  • Method Details