Class IndexedFeatureCollection

  • All Implemented Interfaces:
    FeatureCollection

    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 Detail

      • 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.