Package com.graphhopper.util
Class JsonFeature
java.lang.Object
com.graphhopper.util.JsonFeature
This class defines a properties where a geometry is associated. Typically read from GeoJSON but also from in-memory is possible.
- Author:
- Peter Karich
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.locationtech.jts.geom.Envelope
getBBox()
org.locationtech.jts.geom.Geometry
getId()
getProperty
(String key) getType()
static boolean
void
setBBox
(org.locationtech.jts.geom.Envelope bbox) void
setGeometry
(org.locationtech.jts.geom.Geometry geometry) void
void
setProperties
(Map<String, Object> properties) toString()
-
Constructor Details
-
JsonFeature
public JsonFeature() -
JsonFeature
-
-
Method Details
-
getId
-
getType
-
getBBox
public org.locationtech.jts.geom.Envelope getBBox() -
getGeometry
public org.locationtech.jts.geom.Geometry getGeometry() -
getProperties
-
getProperty
-
setId
-
setBBox
public void setBBox(org.locationtech.jts.geom.Envelope bbox) -
setGeometry
public void setGeometry(org.locationtech.jts.geom.Geometry geometry) -
setProperties
-
toString
-
isValidId
-