public class MfGeoJSONWriter
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MfGeoJSONWriter.GeometryType |
| Constructor and Description |
|---|
MfGeoJSONWriter(org.json.JSONWriter builder) |
| Modifier and Type | Method and Description |
|---|---|
void |
encode(MfGeo o) |
protected void |
encodeBoundingBox(org.locationtech.jts.geom.Envelope env)
Turns an envelope into an array [minX,minY,maxX,maxY]
|
void |
encodeFeature(MfFeature f) |
void |
encodeFeatureCollection(MfFeatureCollection c) |
void |
encodeGeometry(org.locationtech.jts.geom.Geometry g) |
static java.lang.String |
getGeometryName(org.locationtech.jts.geom.Geometry geometry) |
static MfGeoJSONWriter.GeometryType |
getGeometryType(org.locationtech.jts.geom.Geometry geometry)
Gets the internal representation for the given Geometry
|
public void encode(MfGeo o) throws org.json.JSONException
org.json.JSONExceptionpublic void encodeFeatureCollection(MfFeatureCollection c) throws org.json.JSONException
org.json.JSONExceptionpublic void encodeFeature(MfFeature f) throws org.json.JSONException
org.json.JSONExceptionpublic void encodeGeometry(org.locationtech.jts.geom.Geometry g)
throws org.json.JSONException
org.json.JSONExceptionprotected void encodeBoundingBox(org.locationtech.jts.geom.Envelope env)
throws org.json.JSONException
env - envelope representing bounding boxorg.json.JSONExceptionpublic static java.lang.String getGeometryName(org.locationtech.jts.geom.Geometry geometry)
public static MfGeoJSONWriter.GeometryType getGeometryType(org.locationtech.jts.geom.Geometry geometry)
geometry - a Geometry