public class GeoPolygon extends GeoShapeBase
| Constructor and Description |
|---|
GeoPolygon(List<GeoPoint> outerBoundary) |
GeoPolygon(List<GeoPoint> outerBoundary,
List<List<GeoPoint>> holeBoundaries) |
| Modifier and Type | Method and Description |
|---|---|
GeoPolygon |
addHole(List<GeoPoint> geoPoints) |
static GeoShape |
createLenient(List<GeoPoint> outerBoundary) |
static GeoShape |
createLenient(List<GeoPoint> outerBoundary,
List<List<GeoPoint>> holeBoundaries) |
boolean |
equals(Object obj) |
List<List<GeoPoint>> |
getHoles() |
List<GeoPoint> |
getOuterBoundary() |
int |
hashCode() |
String |
toString() |
void |
validate()
Throw a GeInvalidShapeException if the requirements for this shape are not met.
|
intersects, toArrayList, toArrayLists, withinpublic GeoPolygon(List<GeoPoint> outerBoundary)
outerBoundary - A list of geopoints that make up the outer boundary of this shape. To avoid ambiguity,
the points must be specified in counter-clockwise order. In addition, the first and last
point specified must match.public GeoPolygon(List<GeoPoint> outerBoundary, List<List<GeoPoint>> holeBoundaries)
outerBoundary - A list of geopoints that make up the outer boundary of this shape. To avoid ambiguity,
the points must be specified in counter-clockwise order. In addition, the first and last
point specified must match.holeBoundaries - A list of geopoint lists that make up the holes in this shape. To avoid ambiguity,
the points must be specified in clockwise order. In addition, the first and last
point specified must match.public void validate()
GeoShapevalidate in interface GeoShapevalidate in class GeoShapeBasepublic static GeoShape createLenient(List<GeoPoint> outerBoundary, List<List<GeoPoint>> holeBoundaries)
public GeoPolygon addHole(List<GeoPoint> geoPoints)
Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.