Package com.massifmaps.geometry
Class VectorTileFeatureCollection
java.lang.Object
com.massifmaps.geometry.FeatureCollection
com.massifmaps.geometry.VectorTileFeatureCollection
A collection of vector tile features.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a VectorTileFeatureCollection from a vector of vector tile features. -
Method Summary
Modifier and TypeMethodDescriptiongetFeature(int index) Returns the feature at the specified index.Methods inherited from class com.massifmaps.geometry.FeatureCollection
getFeatureCount
-
Constructor Details
-
VectorTileFeatureCollection
Constructs a VectorTileFeatureCollection from a vector of vector tile features.- Parameters:
features- The features for the collection.
-
-
Method Details
-
getFeature
Returns the feature at the specified index. Index must be between 0 and getFeatureCount (exclusive).- Overrides:
getFeaturein classFeatureCollection- Parameters:
index- The index of the feature to get.- Returns:
- The feature at specified index.
- Throws:
IndexOutOfBoundsException- If the index is out of range.
-