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.EnvelopegetBBox()org.locationtech.jts.geom.GeometrygetId()getProperty(String key) getType()static booleanvoidsetBBox(org.locationtech.jts.geom.Envelope bbox) voidsetGeometry(org.locationtech.jts.geom.Geometry geometry) voidvoidsetProperties(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
-