Package com.mongodb.client.model.geojson
Class Polygon
java.lang.Object
com.mongodb.client.model.geojson.Geometry
com.mongodb.client.model.geojson.Polygon
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
A representation of a GeoJSON Polygon.
- Since:
- 3.1
-
Constructor Summary
ConstructorsConstructorDescriptionPolygon(CoordinateReferenceSystem coordinateReferenceSystem, PolygonCoordinates coordinates) Deprecated.Construct an instance with the given coordinates and coordinate reference system.Polygon(PolygonCoordinates coordinates) Deprecated.Construct an instance with the given coordinates.Deprecated.Construct an instance with the given coordinates. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Deprecated.Gets the GeoJSON coordinates of the polygonDeprecated.Gets the exterior coordinates.getHoles()Deprecated.Get the holes in this polygon.getType()Deprecated.Gets the GeoJSON object type.inthashCode()Deprecated.toString()Deprecated.Methods inherited from class com.mongodb.client.model.geojson.Geometry
getCoordinateReferenceSystem, toJson
-
Constructor Details
-
Polygon
Deprecated.Construct an instance with the given coordinates.- Parameters:
exterior- the exterior ring of the polygonholes- optional interior rings of the polygon
-
Polygon
Deprecated.Construct an instance with the given coordinates.- Parameters:
coordinates- the coordinates
-
Polygon
public Polygon(@Nullable CoordinateReferenceSystem coordinateReferenceSystem, PolygonCoordinates coordinates) Deprecated.Construct an instance with the given coordinates and coordinate reference system.- Parameters:
coordinateReferenceSystem- the coordinate reference systemcoordinates- the coordinates
-
-
Method Details
-
getType
Deprecated.Description copied from class:GeometryGets the GeoJSON object type. -
getCoordinates
Deprecated.Gets the GeoJSON coordinates of the polygon- Returns:
- the coordinates, which must have at least one element
-
getExterior
Deprecated.Gets the exterior coordinates.- Returns:
- the exterior coordinates
-
getHoles
Deprecated.Get the holes in this polygon.- Returns:
- the possibly-empty list of holes
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-