| org.geoserver.wfs.response.GeoJSONBuilder
GeoJSONBuilder | public class GeoJSONBuilder extends JSONBuilder (Code) | | This class extends the JSONBuilder to be able to write out geometric types. It is coded
against the draft 5 version of the spec on http://geojson.org
author: Chris Holmes, The Open Planning Project version: $Id$ |
LINESTRING | final protected static int LINESTRING(Code) | | Internal representation of OGC SF LineString
|
MULTIGEOMETRY | final protected static int MULTIGEOMETRY(Code) | | Internal representation of OGC SF MultiGeometry
|
MULTILINESTRING | final protected static int MULTILINESTRING(Code) | | Internal representation of OGC SF MultiLineString
|
MULTIPOINT | final protected static int MULTIPOINT(Code) | | Internal representation of OGC SF MultiPoint
|
MULTIPOLYGON | final protected static int MULTIPOLYGON(Code) | | Internal representation of OGC SF MultiPolygon
|
POINT | final protected static int POINT(Code) | | Internal representation of OGC SF Point
|
POLYGON | final protected static int POLYGON(Code) | | Internal representation of OGC SF Polygon
|
getGeometryName | public static String getGeometryName(Geometry geometry)(Code) | | |
getGeometryType | public static int getGeometryType(Geometry geometry)(Code) | | Gets the internal representation for the given Geometry
Parameters: geometry - a Geometry int representation of Geometry |
writeBoundingBox | protected JSONBuilder writeBoundingBox(Envelope env)(Code) | | Turns an envelope into an array [minX,minY,maxX,maxY]
Parameters: env - envelope representing bounding box this |
writeGeom | public JSONBuilder writeGeom(Geometry geometry) throws JSONException(Code) | | Writes any geometry object. This class figures out which geometry representation to write
and calls subclasses to actually write the object.
Parameters: geometry - The geoemtry be encoded The JSONBuilder with the new geoemtry throws: JSONException - If anything goes wrong |
|
|