java.lang.Object | |
↳ | com.carto.geometry.FeatureCollection |
![]() |
A collection of features.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
FeatureCollection(FeatureVector features)
Constructs a FeatureCollection from a vector of features.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
synchronized void | delete() | ||||||||||
Feature |
getFeature(int index)
Returns the feature at the specified index.
| ||||||||||
int |
getFeatureCount()
Returns the number of features in this container.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Constructs a FeatureCollection from a vector of features.
features | The features for the collection. |
---|
Returns the feature at the specified index. Index must be between 0 and getFeatureCount (exclusive).
index | The index of the feature to get. |
---|
IndexOutOfBoundsException | If the index is out of range. |
---|
Returns the number of features in this container.