public class ST_AsGeoJSON
extends org.h2gis.api.DeterministicScalarFunction
| Constructor and Description |
|---|
ST_AsGeoJSON() |
| Modifier and Type | Method and Description |
|---|---|
String |
getJavaStaticMethod() |
static String |
toGeojson(org.locationtech.jts.geom.Geometry geom)
Convert the geometry to a GeoJSON representation.
|
static void |
toGeojsonCoordinate(org.locationtech.jts.geom.Coordinate coord,
StringBuilder sb)
Convert a JTS coordinate to a GeoJSON representation.
|
static void |
toGeojsonCoordinates(org.locationtech.jts.geom.Coordinate[] coords,
StringBuilder sb)
Convert a jts array of coordinates to a GeoJSON coordinates
representation.
|
String |
toGeoJsonEnvelope(org.locationtech.jts.geom.Envelope e)
Convert a JTS Envelope to a GeoJSON representation.
|
static void |
toGeojsonGeometry(org.locationtech.jts.geom.Geometry geom,
StringBuilder sb)
Transform a JTS geometry to a GeoJSON representation.
|
static void |
toGeojsonGeometryCollection(org.locationtech.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(org.locationtech.jts.geom.LineString lineString,
StringBuilder sb)
Coordinates of LineString are an array of positions.
|
static void |
toGeojsonMultiLineString(org.locationtech.jts.geom.MultiLineString multiLineString,
StringBuilder sb)
Coordinates of a MultiLineString are an array of LineString coordinate
arrays.
|
static void |
toGeojsonMultiPoint(org.locationtech.jts.geom.MultiPoint multiPoint,
StringBuilder sb)
Coordinates of a MultiPoint are an array of positions.
|
static void |
toGeojsonMultiPolygon(org.locationtech.jts.geom.MultiPolygon multiPolygon,
StringBuilder sb)
Coordinates of a MultiPolygon are an array of Polygon coordinate arrays.
|
static void |
toGeojsonPoint(org.locationtech.jts.geom.Point point,
StringBuilder sb)
For type "Point", the "coordinates" member must be a single position.
|
static void |
toGeojsonPolygon(org.locationtech.jts.geom.Polygon polygon,
StringBuilder sb)
Coordinates of a Polygon are an array of LinearRing coordinate arrays.
|
addProperty, getProperty, removePropertypublic String getJavaStaticMethod()
public static String toGeojson(org.locationtech.jts.geom.Geometry geom)
geom - public static void toGeojsonGeometry(org.locationtech.jts.geom.Geometry geom,
StringBuilder sb)
geom - sb - public static void toGeojsonPoint(org.locationtech.jts.geom.Point point,
StringBuilder sb)
point - sb - public static void toGeojsonMultiPoint(org.locationtech.jts.geom.MultiPoint multiPoint,
StringBuilder sb)
multiPoint - sb - public static void toGeojsonLineString(org.locationtech.jts.geom.LineString lineString,
StringBuilder sb)
lineString - sb - public static void toGeojsonMultiLineString(org.locationtech.jts.geom.MultiLineString multiLineString,
StringBuilder sb)
multiLineString - sb - public static void toGeojsonPolygon(org.locationtech.jts.geom.Polygon polygon,
StringBuilder sb)
polygon - sb - public static void toGeojsonMultiPolygon(org.locationtech.jts.geom.MultiPolygon multiPolygon,
StringBuilder sb)
multiPolygon - sb - public static void toGeojsonGeometryCollection(org.locationtech.jts.geom.GeometryCollection geometryCollection,
StringBuilder sb)
geometryCollection - sb - public static void toGeojsonCoordinates(org.locationtech.jts.geom.Coordinate[] coords,
StringBuilder sb)
coords - sb - public static void toGeojsonCoordinate(org.locationtech.jts.geom.Coordinate coord,
StringBuilder sb)
coord - sb - public String toGeoJsonEnvelope(org.locationtech.jts.geom.Envelope e)
e - The envelopeCopyright © 2019 CNRS. All rights reserved.