public class GeoJSONMultiPolygon extends Object implements GeoJSONGeometryObject
GeoJSONPolygon.
Note, that validate() does not check if the interior rings actually
lie within the exterior ring.| Constructor and Description |
|---|
GeoJSONMultiPolygon() |
| Modifier and Type | Method and Description |
|---|---|
static GeoJSONMultiPolygon |
create(List<List<List<GeoJSONCoordinate>>> points) |
boolean |
equals(Object obj) |
List<List<List<GeoJSONCoordinate>>> |
getCoordinates()
Coordinates of a multipolygon are an array of polygons, which 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() |
GeoJSONMultiPolygon |
setCoordinates(List<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<List<GeoJSONCoordinate>>> getCoordinates()
public GeoJSONMultiPolygon setCoordinates(List<List<List<GeoJSONCoordinate>>> coordinates)
public static GeoJSONMultiPolygon create(List<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.