Package com.mongodb.client.model.geojson
Class MultiPolygon
java.lang.Object
com.mongodb.client.model.geojson.Geometry
com.mongodb.client.model.geojson.MultiPolygon
A representation of a GeoJSON MultiPolygon.
- Since:
- 3.1
-
Constructor Summary
ConstructorDescriptionMultiPolygon
(CoordinateReferenceSystem coordinateReferenceSystem, List<PolygonCoordinates> coordinates) Construct an instance.MultiPolygon
(List<PolygonCoordinates> coordinates) Construct an instance. -
Method Summary
Methods inherited from class com.mongodb.client.model.geojson.Geometry
getCoordinateReferenceSystem, toJson
-
Constructor Details
-
MultiPolygon
Construct an instance.- Parameters:
coordinates
- the coordinates
-
MultiPolygon
public MultiPolygon(@Nullable CoordinateReferenceSystem coordinateReferenceSystem, List<PolygonCoordinates> coordinates) Construct an instance.- Parameters:
coordinateReferenceSystem
- the coordinate reference systemcoordinates
- the coordinates
-
-
Method Details
-
getType
Description copied from class:Geometry
Gets the GeoJSON object type. -
getCoordinates
Gets the coordinates.- Returns:
- the coordinates
-
equals
-
hashCode
public int hashCode() -
toString
-