Package com.mongodb.client.model.geojson
Class PolygonCoordinates
java.lang.Object
com.mongodb.client.model.geojson.PolygonCoordinates
Coordinates for a GeoJSON Polygon.
- Since:
- 3.1
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
PolygonCoordinates
Construct an instance.- Parameters:
exterior
- the exterior ring of the polygonholes
- optional interior rings of the polygon
-
PolygonCoordinates
Construct an instance.- Parameters:
exterior
- the exterior ring of the polygonholes
- optional interior rings of the polygon- Since:
- 4.3
-
-
Method Details
-
getExterior
Gets the exterior of the polygon.- Returns:
- the exterior of the polygon
-
getHoles
Gets the holes in the polygon.- Returns:
- the holes in the polygon, which will not be null but may be empty
-
equals
-
hashCode
public int hashCode() -
toString
-