|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.h2gis.h2spatialapi.AbstractFunction
org.h2gis.h2spatialapi.DeterministicScalarFunction
org.h2gis.drivers.geojson.ST_AsGeoJSON
public class ST_AsGeoJSON
Transform a JTS geometry to a GeoJSON geometry representation.
| Field Summary |
|---|
| Fields inherited from interface org.h2gis.h2spatialapi.ScalarFunction |
|---|
PROP_DETERMINISTIC, PROP_NOBUFFER |
| Fields inherited from interface org.h2gis.h2spatialapi.Function |
|---|
PROP_NAME, PROP_REMARKS |
| Constructor Summary | |
|---|---|
ST_AsGeoJSON()
|
|
| Method Summary | |
|---|---|
String |
getJavaStaticMethod()
|
static String |
toGeojson(com.vividsolutions.jts.geom.Geometry geom)
Convert the geometry to a GeoJSON representation. |
static void |
toGeojsonCoordinate(com.vividsolutions.jts.geom.Coordinate coord,
StringBuilder sb)
Convert a JTS coordinate to a GeoJSON representation. |
static void |
toGeojsonCoordinates(com.vividsolutions.jts.geom.Coordinate[] coords,
StringBuilder sb)
Convert a jts array of coordinates to a GeoJSON coordinates representation. |
String |
toGeoJsonEnvelope(com.vividsolutions.jts.geom.Envelope e)
Convert a JTS Envelope to a GeoJSON representation. |
static void |
toGeojsonGeometry(com.vividsolutions.jts.geom.Geometry geom,
StringBuilder sb)
Transform a JTS geometry to a GeoJSON representation. |
static void |
toGeojsonGeometryCollection(com.vividsolutions.jts.geom.GeometryCollection geometryCollection,
StringBuilder sb)
A GeoJSON object with type "GeometryCollection" is a geometry object which represents a collection of geometry objects. |
static void |
toGeojsonLineString(com.vividsolutions.jts.geom.LineString lineString,
StringBuilder sb)
Coordinates of LineString are an array of positions. |
static void |
toGeojsonMultiLineString(com.vividsolutions.jts.geom.MultiLineString multiLineString,
StringBuilder sb)
Coordinates of a MultiLineString are an array of LineString coordinate arrays. |
static void |
toGeojsonMultiPoint(com.vividsolutions.jts.geom.MultiPoint multiPoint,
StringBuilder sb)
Coordinates of a MultiPoint are an array of positions. |
static void |
toGeojsonMultiPolygon(com.vividsolutions.jts.geom.MultiPolygon multiPolygon,
StringBuilder sb)
Coordinates of a MultiPolygon are an array of Polygon coordinate arrays. |
static void |
toGeojsonPoint(com.vividsolutions.jts.geom.Point point,
StringBuilder sb)
For type "Point", the "coordinates" member must be a single position. |
static void |
toGeojsonPolygon(com.vividsolutions.jts.geom.Polygon polygon,
StringBuilder sb)
Coordinates of a Polygon are an array of LinearRing coordinate arrays. |
| Methods inherited from class org.h2gis.h2spatialapi.AbstractFunction |
|---|
addProperty, getProperty, removeProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.h2gis.h2spatialapi.Function |
|---|
getProperty |
| Constructor Detail |
|---|
public ST_AsGeoJSON()
| Method Detail |
|---|
public String getJavaStaticMethod()
public static String toGeojson(com.vividsolutions.jts.geom.Geometry geom)
geom -
public static void toGeojsonGeometry(com.vividsolutions.jts.geom.Geometry geom,
StringBuilder sb)
geom - sb -
public static void toGeojsonPoint(com.vividsolutions.jts.geom.Point point,
StringBuilder sb)
point - sb -
public static void toGeojsonMultiPoint(com.vividsolutions.jts.geom.MultiPoint multiPoint,
StringBuilder sb)
multiPoint - sb -
public static void toGeojsonLineString(com.vividsolutions.jts.geom.LineString lineString,
StringBuilder sb)
lineString - sb -
public static void toGeojsonMultiLineString(com.vividsolutions.jts.geom.MultiLineString multiLineString,
StringBuilder sb)
multiLineString - sb -
public static void toGeojsonPolygon(com.vividsolutions.jts.geom.Polygon polygon,
StringBuilder sb)
polygon - sb -
public static void toGeojsonMultiPolygon(com.vividsolutions.jts.geom.MultiPolygon multiPolygon,
StringBuilder sb)
multiPolygon - sb -
public static void toGeojsonGeometryCollection(com.vividsolutions.jts.geom.GeometryCollection geometryCollection,
StringBuilder sb)
geometryCollection - sb -
public static void toGeojsonCoordinates(com.vividsolutions.jts.geom.Coordinate[] coords,
StringBuilder sb)
coords - sb -
public static void toGeojsonCoordinate(com.vividsolutions.jts.geom.Coordinate coord,
StringBuilder sb)
coord - sb - public String toGeoJsonEnvelope(com.vividsolutions.jts.geom.Envelope e)
e - The envelope
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||