Package dev.morphia.geo
Class MultiPolygon
- java.lang.Object
-
- dev.morphia.geo.MultiPolygon
-
- All Implemented Interfaces:
Geometry
@Deprecated(since="2.0", forRemoval=true) public class MultiPolygon extends Object implements Geometry
Deprecated, for removal: This API element is subject to removal in a future version.use the driver-provided types insteadThis class represents a set of polygons, which will saved into MongoDB as per the GeoJSON specification. The factory for creating a MultiPolygon is theGeoJson.multiPolygonmethod.- See Also:
GeoJson.multiPolygon(Polygon...)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MultiPolygonconvert()Deprecated, for removal: This API element is subject to removal in a future version.Converts this type to the driver typeMultiPolygonconvert(CoordinateReferenceSystem crs)Deprecated, for removal: This API element is subject to removal in a future version.Converts this type to the driver typebooleanequals(Object o)Deprecated, for removal: This API element is subject to removal in a future version.List<Polygon>getCoordinates()Deprecated, for removal: This API element is subject to removal in a future version.Returns a list of coordinates for this Geometry type.inthashCode()Deprecated, for removal: This API element is subject to removal in a future version.StringtoString()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
Method Detail
-
getCoordinates
public List<Polygon> getCoordinates()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:GeometryReturns a list of coordinates for this Geometry type. For something like a Point, this will be a pair of lat/long coordinates, but for more complex types this will be a list of other Geometry objects. Used for serialisation to MongoDB.- Specified by:
getCoordinatesin interfaceGeometry- Returns:
- a List containing either Geometry objects, or a pair of coordinates as doubles
-
hashCode
public int hashCode()
Deprecated, for removal: This API element is subject to removal in a future version.
-
equals
public boolean equals(Object o)
Deprecated, for removal: This API element is subject to removal in a future version.
-
toString
public String toString()
Deprecated, for removal: This API element is subject to removal in a future version.
-
convert
public MultiPolygon convert()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:GeometryConverts this type to the driver type
-
convert
public MultiPolygon convert(@Nullable CoordinateReferenceSystem crs)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:GeometryConverts this type to the driver type
-
-