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, getGeometry, toWkt
getCompositeGeometry, getCompositeGeometry, getCoordinate, getCoordinates
public static final String TYPE
public static CompositeGeometry toCompositeGeometry(List coordinates)
coordinates
- a List of coordinates formatted in the GeoJSON Array equivalentprotected static com.vividsolutions.jts.geom.Polygon buildPolygon(List coordinates)
public Map toJsonMap()
CompositeGeometry
toJsonMap
in class MultiPoint
protected List buildJsonPolygon(com.vividsolutions.jts.geom.Polygon polygon)
public List<org.apache.abdera.ext.geo.Position> toGeoRssPositions()
toGeoRssPositions
in class MultiPoint
protected org.apache.abdera.ext.geo.Coordinates getPolygonCoordinates(com.vividsolutions.jts.geom.Polygon polygon)
This work is licensed under a Creative Commons Attribution 4.0 International License.