public class Feature extends TfcatObject
Constructor and Description |
---|
Feature(org.json.JSONObject json,
Crs crs,
Bbox bbox,
Geometry<?> geometry,
String id,
org.json.JSONObject properties)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Geometry<?> |
getGeometry()
Returns this feature's geometry.
|
String |
getId()
Returns this feature's identifier.
|
org.json.JSONObject |
getProperties()
Returns this featurs's properties object.
|
void |
purgeJson()
Removes any reference to the original parsed JSON from this object.
|
public Feature(org.json.JSONObject json, Crs crs, Bbox bbox, Geometry<?> geometry, String id, org.json.JSONObject properties)
json
- JSON object with "type":"Feature" on which this is basedcrs
- coordinate reference system, may be nullbbox
- bounding box, may be nullgeometry
- geometry content, may be nullid
- identifier string, may be nullproperties
- properties object, may be nullpublic Geometry<?> getGeometry()
public String getId()
public org.json.JSONObject getProperties()
public void purgeJson()
TfcatObject
purgeJson
in class TfcatObject
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.