public class FeatureCollection extends GeoJsonObject implements Iterable<Feature>
| Constructor and Description |
|---|
FeatureCollection()
Constructor
|
FeatureCollection(Collection<Feature> features)
Constructor
|
FeatureCollection(Feature feature)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFeature(Feature feature)
Add a feature
|
void |
addFeatures(Collection<Feature> features)
Add the features
|
Feature |
getFeature(int i)
Get the feature at the index
|
List<Feature> |
getFeatures()
Get the features
|
mil.nga.sf.GeometryType |
getGeometryType()
Get the geometry type
|
Map<String,String> |
getPropertiesMap()
Get the properties map
|
String |
getType()
Get the GeoJSON object type
|
Iterator<Feature> |
iterator() |
int |
numFeatures()
Get the number of features
|
void |
setFeatures(Collection<Feature> features)
Set the features
|
getBbox, getForeignMember, getForeignMembers, hasForeignMember, hasForeignMembers, setBbox, setForeignMemberclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic FeatureCollection()
public FeatureCollection(Feature feature)
feature - featurepublic FeatureCollection(Collection<Feature> features)
features - collection of featurespublic void setFeatures(Collection<Feature> features)
features - collection of featurespublic void addFeature(Feature feature)
feature - featurepublic void addFeatures(Collection<Feature> features)
features - collection of featurespublic int numFeatures()
public Feature getFeature(int i)
i - indexpublic mil.nga.sf.GeometryType getGeometryType()
public Map<String,String> getPropertiesMap()
public String getType()
getType in class GeoJsonObjectCopyright © 2019 National Geospatial-Intelligence Agency. All rights reserved.