public class Polygon extends Object implements Geometry
PolygonBuilder
, which is accessible via the GeoJson.polygonBuilder
method.
Alternatively, simple polygons without inner rings can be created via the GeoJson.polygon
factory method.Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<LineString> |
getCoordinates()
Returns a list of coordinates for this Geometry type.
|
LineString |
getExteriorBoundary()
Returns a LineString representing the exterior boundary of this Polygon.
|
List<LineString> |
getInteriorBoundaries()
Returns a (possibly empty) List of LineStrings, one for each hole inside the external boundary of this polygon.
|
int |
hashCode() |
String |
toString() |
public LineString getExteriorBoundary()
public List<LineString> getInteriorBoundaries()
public List<LineString> getCoordinates()
Geometry
getCoordinates
in interface Geometry
Copyright © 2016. All rights reserved.