Package dev.morphia.geo
Interface Geometry
-
- All Known Implementing Classes:
LineString
,MultiLineString
,MultiPoint
,MultiPolygon
,Point
,Polygon
@Deprecated(since="2.0", forRemoval=true) public interface Geometry
Deprecated, for removal: This API element is subject to removal in a future version.use the driver-provided types insteadInterface to denote which entities are classes that will serialise into a MongoDB GeoJson object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Geometry
convert()
Deprecated, for removal: This API element is subject to removal in a future version.Converts this type to the driver typeGeometry
convert(CoordinateReferenceSystem crs)
Deprecated, for removal: This API element is subject to removal in a future version.Converts this type to the driver typeList<?>
getCoordinates()
Deprecated, for removal: This API element is subject to removal in a future version.Returns a list of coordinates for this Geometry type.
-
-
-
Method Detail
-
getCoordinates
List<?> getCoordinates()
Deprecated, for removal: This API element is subject to removal in a future version.Returns 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.- Returns:
- a List containing either Geometry objects, or a pair of coordinates as doubles
-
convert
Geometry convert()
Deprecated, for removal: This API element is subject to removal in a future version.Converts this type to the driver type- Returns:
- the driver type
-
convert
Geometry convert(CoordinateReferenceSystem crs)
Deprecated, for removal: This API element is subject to removal in a future version.Converts this type to the driver type- Parameters:
crs
- the CRS to use- Returns:
- the driver type
-
-