public class GeoJSONPolygon extends Object implements GeoJSONGeometryObject
validate() does not check if the interior
rings actually lie within the exterior ring.| Constructor and Description |
|---|
GeoJSONPolygon() |
| Modifier and Type | Method and Description |
|---|---|
static GeoJSONPolygon |
create(List<List<GeoJSONCoordinate>> points) |
boolean |
equals(Object obj) |
List<List<GeoJSONCoordinate>> |
getCoordinates()
Coordinates of a polygon are an array of LinearRing coordinate arrays
(the first and the last coordinate must be the same, thereby closing the
ring).
|
int |
hashCode() |
boolean |
isEmpty() |
GeoJSONPolygon |
setCoordinates(List<List<GeoJSONCoordinate>> coordinates) |
String |
toString() |
String |
toWKT() |
void |
validate()
Checks if the instance is in a valid / useful state.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetTypeNamepublic List<List<GeoJSONCoordinate>> getCoordinates()
public GeoJSONPolygon setCoordinates(List<List<GeoJSONCoordinate>> coordinates)
public static GeoJSONPolygon create(List<List<GeoJSONCoordinate>> points)
public boolean isEmpty()
isEmpty in interface GeoJSONGeometryObjecttrue if the element does not contain any coordinatespublic void validate()
ValidatableIllegalArgumentException including a description of the
invalid state is thrown.validate in interface Validatablepublic String toWKT()
toWKT in interface GeoJSONGeometryObjectCopyright © 2018. All rights reserved.