Package com.azure.core.models
Class GeoPolygon
java.lang.Object
com.azure.core.models.GeoObject
com.azure.core.models.GeoPolygon
Represents a geometric polygon.
-
Constructor Summary
ConstructorsConstructorDescriptionGeoPolygon(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. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the outer ring of the polygon.getRings()Unmodifiable representation of thegeometric ringsrepresenting this polygon.getType()Gets the GeoJSON type for this object.inthashCode()Methods inherited from class com.azure.core.models.GeoObject
getBoundingBox, getCustomProperties
-
Constructor Details
-
GeoPolygon
Constructs a geometric polygon.- Parameters:
ring- Theringthat defines the polygon.- Throws:
NullPointerException- Ifringisnull.
-
GeoPolygon
public GeoPolygon(GeoLinearRing ring, GeoBoundingBox boundingBox, Map<String, Object> customProperties) Constructs a geometric polygon.- Parameters:
ring- Theringthat defines the polygon.boundingBox- Bounding box for the polygon.customProperties- Additional properties of the polygon.- Throws:
NullPointerException- Ifringisnull.
-
GeoPolygon
Constructs a geometric polygon.- Parameters:
rings- Theringsthat define the polygon.- Throws:
NullPointerException- Ifringsisnull.
-
GeoPolygon
public GeoPolygon(List<GeoLinearRing> rings, GeoBoundingBox boundingBox, Map<String, Object> customProperties) Constructs a geometric polygon.- Parameters:
rings- Theringsthat define the polygon.boundingBox- Bounding box for the polygon.customProperties- Additional properties of the polygon.- Throws:
NullPointerException- Ifringsisnull.
-
-
Method Details
-
getRings
Unmodifiable representation of thegeometric ringsrepresenting this polygon.- Returns:
- An unmodifiable representation of the
geometric ringsrepresenting this polygon.
-
getOuterRing
Gets the outer ring of the polygon.- Returns:
- Outer ring of the polygon.
-
getType
Description copied from class:GeoObjectGets the GeoJSON type for this object. -
hashCode
public int hashCode() -
equals
-