Package uk.ac.starlink.tfcat
Class FeatureCollection
java.lang.Object
uk.ac.starlink.tfcat.TfcatObject
uk.ac.starlink.tfcat.FeatureCollection
Represents a TFCat FeatureCollection object.
- Since:
- 9 Feb 2022
- Author:
- Mark Taylor
-
Constructor Details
-
FeatureCollection
public FeatureCollection(org.json.JSONObject json, Crs crs, Bbox bbox, Map<String, Field> fieldMap, Feature[] features) Constructor.- Parameters:
json
- JSON object on which this is basedcrs
- coordinate reference system, may be nullbbox
- bounding box defined by bbox member, may be nullfieldMap
- map of fields associated with this collection; may be empty but not nullfeatures
- features in this collection; may be empty but not null
-
-
Method Details
-
getFeatures
Returns the features in this collection.- Returns:
- feature array
-
getFields
Returns a map of field names to fields for this collection.- Returns:
- field map
-