public final class GeoPolygon extends GeoObject
| Constructor and Description |
|---|
GeoPolygon(GeoLinearRing ring)
Constructs a geometric polygon.
|
GeoPolygon(GeoLinearRing ring,
GeoBoundingBox boundingBox,
Map<String,Object> customProperties)
Constructs a geometric polygon.
|
GeoPolygon(List<GeoLinearRing> rings)
Constructs a geometric polygon.
|
GeoPolygon(List<GeoLinearRing> rings,
GeoBoundingBox boundingBox,
Map<String,Object> customProperties)
Constructs a geometric polygon.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
GeoLinearRing |
getOuterRing()
Gets the outer ring of the polygon.
|
List<GeoLinearRing> |
getRings()
Unmodifiable representation of the
geometric rings representing this polygon. |
GeoObjectType |
getType()
Gets the GeoJSON type for this object.
|
int |
hashCode() |
getBoundingBox, getCustomPropertiespublic GeoPolygon(GeoLinearRing ring)
ring - The ring that defines the polygon.NullPointerException - If ring is null.public GeoPolygon(GeoLinearRing ring, GeoBoundingBox boundingBox, Map<String,Object> customProperties)
ring - The ring that defines the polygon.boundingBox - Bounding box for the polygon.customProperties - Additional properties of the polygon.NullPointerException - If ring is null.public GeoPolygon(List<GeoLinearRing> rings)
rings - The rings that define the polygon.NullPointerException - If rings is null.public GeoPolygon(List<GeoLinearRing> rings, GeoBoundingBox boundingBox, Map<String,Object> customProperties)
rings - The rings that define the polygon.boundingBox - Bounding box for the polygon.customProperties - Additional properties of the polygon.NullPointerException - If rings is null.public List<GeoLinearRing> getRings()
geometric rings representing this polygon.geometric rings representing this polygon.public GeoLinearRing getOuterRing()
public GeoObjectType getType()
GeoObjectCopyright © 2021 Microsoft Corporation. All rights reserved.