public class Point extends CompositeGeometry
| Modifier and Type | Field and Description |
|---|---|
protected com.vividsolutions.jts.geom.Geometry |
geometry |
static String |
TYPE |
COORDINATES_KEY, GEOMETRIES_KEY, GEOMETRY_FACTORY, GEOMETRY_KEY, PROPERTIES_KEY, TYPE_KEY| Constructor and Description |
|---|
Point(com.vividsolutions.jts.geom.Geometry geometry) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.abdera.ext.geo.Coordinate |
convert(com.vividsolutions.jts.geom.Coordinate jtsCoordinate) |
protected Map |
createMap(String key,
List objects) |
com.vividsolutions.jts.geom.Geometry |
getGeometry() |
protected boolean |
isNotType(com.vividsolutions.jts.geom.Geometry geo) |
static CompositeGeometry |
toCompositeGeometry(List coordinates) |
List<org.apache.abdera.ext.geo.Position> |
toGeoRssPositions() |
Map |
toJsonMap()
Creates a Map that mimics the GeoJSON structure.
|
String |
toWkt() |
getCompositeGeometry, getCompositeGeometry, getCoordinate, getCoordinatespublic static final String TYPE
protected com.vividsolutions.jts.geom.Geometry geometry
public static CompositeGeometry toCompositeGeometry(List coordinates)
coordinates - [x,y] coordinate listprotected boolean isNotType(com.vividsolutions.jts.geom.Geometry geo)
public Map toJsonMap()
CompositeGeometrytoJsonMap in class CompositeGeometrypublic String toWkt()
toWkt in class CompositeGeometrypublic com.vividsolutions.jts.geom.Geometry getGeometry()
getGeometry in class CompositeGeometrypublic List<org.apache.abdera.ext.geo.Position> toGeoRssPositions()
toGeoRssPositions in class CompositeGeometryprotected org.apache.abdera.ext.geo.Coordinate convert(com.vividsolutions.jts.geom.Coordinate jtsCoordinate)
This work is licensed under a Creative Commons Attribution 4.0 International License.