public class Polygon extends MultiPoint
| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE |
COORDINATES_KEY, GEOMETRIES_KEY, GEOMETRY_FACTORY, GEOMETRY_KEY, PROPERTIES_KEY, TYPE_KEY| Constructor and Description |
|---|
Polygon(com.vividsolutions.jts.geom.Geometry geometry) |
| Modifier and Type | Method and Description |
|---|---|
protected List |
buildJsonPolygon(com.vividsolutions.jts.geom.Polygon polygon) |
protected static com.vividsolutions.jts.geom.Polygon |
buildPolygon(List coordinates) |
protected org.apache.abdera.ext.geo.Coordinates |
getPolygonCoordinates(com.vividsolutions.jts.geom.Polygon polygon) |
static CompositeGeometry |
toCompositeGeometry(List coordinates) |
List<org.apache.abdera.ext.geo.Position> |
toGeoRssPositions() |
Map |
toJsonMap()
Creates a Map that mimics the GeoJSON structure.
|
buildCoordinatesList, toWktconvert, createMap, getGeometry, isNotTypegetCompositeGeometry, getCompositeGeometry, getCoordinate, getCoordinatespublic static final String TYPE
public static CompositeGeometry toCompositeGeometry(List coordinates)
coordinates - a List of coordinates formatted in the GeoJSON Array equivalentpublic Map toJsonMap()
CompositeGeometrytoJsonMap in class MultiPointprotected List buildJsonPolygon(com.vividsolutions.jts.geom.Polygon polygon)
protected static com.vividsolutions.jts.geom.Polygon buildPolygon(List coordinates)
public List<org.apache.abdera.ext.geo.Position> toGeoRssPositions()
toGeoRssPositions in class MultiPointprotected org.apache.abdera.ext.geo.Coordinates getPolygonCoordinates(com.vividsolutions.jts.geom.Polygon polygon)
Copyright © 2014–2015 Cohesive Integrations, LLC. All rights reserved.