Class VectorTileFeatureCollection

java.lang.Object
com.massifmaps.geometry.FeatureCollection
com.massifmaps.geometry.VectorTileFeatureCollection

public class VectorTileFeatureCollection extends FeatureCollection
A collection of vector tile features.
  • Constructor Details

    • VectorTileFeatureCollection

      public VectorTileFeatureCollection(VectorTileFeatureVector features)
      Constructs a VectorTileFeatureCollection from a vector of vector tile features.
      Parameters:
      features - The features for the collection.
  • Method Details

    • getFeature

      public VectorTileFeature getFeature(int index)
      Returns the feature at the specified index. Index must be between 0 and getFeatureCount (exclusive).
      Overrides:
      getFeature in class FeatureCollection
      Parameters:
      index - The index of the feature to get.
      Returns:
      The feature at specified index.
      Throws:
      IndexOutOfBoundsException - If the index is out of range.