public class GeoPolygon extends GeoShapeBase
EARTH_CIRCUMFERENCE, EARTH_RADIUS, MAX_LAT, MAX_LON, MIN_LAT, MIN_LON| Constructor and Description |
|---|
GeoPolygon(List<GeoPoint> outerBoundary) |
GeoPolygon(List<GeoPoint> outerBoundary,
List<List<GeoPoint>> holeBoundaries) |
GeoPolygon(List<GeoPoint> outerBoundary,
List<List<GeoPoint>> holeBoundaries,
String description) |
GeoPolygon(List<GeoPoint> outerBoundary,
String description) |
| Modifier and Type | Method and Description |
|---|---|
GeoPolygon |
addHole(List<GeoPoint> geoPoints) |
boolean |
equals(Object obj) |
List<List<GeoPoint>> |
getHoles() |
List<GeoPoint> |
getOuterBoundary() |
int |
hashCode() |
boolean |
intersects(GeoShape geoShape)
Calculate whether the given GeoShape intersects with the geometry of this object.
|
String |
toString() |
void |
validate()
Throw a VertexiumException if the requirements for this shape are not met.
|
boolean |
within(GeoShape geoShape)
Calculate whether the given GeoShape is completely within the geometry of this object.
|
distanceBetween, getDescriptionpublic 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, String description)
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.description - name or description of this shapepublic 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 GeoPolygon(List<GeoPoint> outerBoundary, List<List<GeoPoint>> holeBoundaries, String description)
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.description - name or description of this shapepublic boolean intersects(GeoShape geoShape)
GeoShapegeoShape - The other shapepublic boolean within(GeoShape geoShape)
GeoShapegeoShape - The other shapepublic void validate()
GeoShapevalidate in interface GeoShapevalidate in class GeoShapeBasepublic GeoPolygon addHole(List<GeoPoint> geoPoints)
Copyright © 2014–2018. All rights reserved.