| Modifier and Type | Field and Description |
|---|---|
static String |
COORDINATES_KEY |
static String |
GEOMETRIES_KEY |
protected static com.vividsolutions.jts.geom.GeometryFactory |
GEOMETRY_FACTORY |
static String |
GEOMETRY_KEY |
static String |
PROPERTIES_KEY |
static String |
TYPE_KEY |
| Constructor and Description |
|---|
CompositeGeometry() |
| Modifier and Type | Method and Description |
|---|---|
static CompositeGeometry |
getCompositeGeometry(com.vividsolutions.jts.geom.Geometry geometry)
Deciphers the
CompositeGeometry object to return based on Geometry |
static CompositeGeometry |
getCompositeGeometry(String type,
Map jsonObject) |
protected static com.vividsolutions.jts.geom.Coordinate |
getCoordinate(List primitiveCoordinates) |
protected static com.vividsolutions.jts.geom.Coordinate[] |
getCoordinates(List<List<String>> primitiveCoordinatesList) |
abstract com.vividsolutions.jts.geom.Geometry |
getGeometry() |
abstract List<org.apache.abdera.ext.geo.Position> |
toGeoRssPositions() |
abstract Map |
toJsonMap()
Creates a Map that mimics the GeoJSON structure.
|
abstract String |
toWkt() |
public static final String TYPE_KEY
public static final String COORDINATES_KEY
public static final String PROPERTIES_KEY
public static final String GEOMETRY_KEY
public static final String GEOMETRIES_KEY
protected static final com.vividsolutions.jts.geom.GeometryFactory GEOMETRY_FACTORY
public abstract Map toJsonMap()
UnsupportedOperationException - when the object cannot write into the mappublic abstract String toWkt()
public abstract List<org.apache.abdera.ext.geo.Position> toGeoRssPositions()
public abstract com.vividsolutions.jts.geom.Geometry getGeometry()
public static CompositeGeometry getCompositeGeometry(com.vividsolutions.jts.geom.Geometry geometry)
CompositeGeometry object to return based on Geometrygeometry - CompositeGeometrypublic static CompositeGeometry getCompositeGeometry(String type, Map jsonObject)
type - case-sensitive String of the geometric type, must match the exact spelling in the GeoJSON standard
(geojson.org)jsonObject - Map of coordinates or geometriesCompositeGeometry based on the type passed in, returns null if the type
is not one of the standard GeoJSON geometric strings.protected static com.vividsolutions.jts.geom.Coordinate getCoordinate(List primitiveCoordinates)
primitiveCoordinates - requires x and y coordinate information as a List, x coordinate is the first item in the listCoordinate objectprotected static com.vividsolutions.jts.geom.Coordinate[] getCoordinates(List<List<String>> primitiveCoordinatesList)
primitiveCoordinatesList - a List of [x,y] coordinates. The [x,y] coordinates is a list of two objects where x coordinate is
first and the y coordinate is second in the listCoordinate objects, if input is null or empty, it will return an empty
arrayCopyright © 2014–2016 Pink Summit, LLC. All rights reserved.