Package dev.morphia.geo
Class LineString
- java.lang.Object
-
- dev.morphia.geo.LineString
-
- All Implemented Interfaces:
Geometry
@Deprecated(since="2.0", forRemoval=true) public class LineString extends Object implements Geometry
Deprecated, for removal: This API element is subject to removal in a future version.use the driver-provided types insteadRepresents a GeoJSON LineString type. Will be persisted into the database according to the specification. The factory for creating a LineString is theGeoJson.lineString
method.- See Also:
GeoJson.lineString(Point...)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description com.mongodb.client.model.geojson.LineString
convert()
Deprecated, for removal: This API element is subject to removal in a future version.Converts this type to the driver typecom.mongodb.client.model.geojson.LineString
convert(CoordinateReferenceSystem crs)
Deprecated, for removal: This API element is subject to removal in a future version.Converts this type to the driver typeboolean
equals(Object o)
Deprecated, for removal: This API element is subject to removal in a future version.List<Point>
getCoordinates()
Deprecated, for removal: This API element is subject to removal in a future version.Returns a list of coordinates for this Geometry type.int
hashCode()
Deprecated, for removal: This API element is subject to removal in a future version.String
toString()
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
Method Detail
-
getCoordinates
public List<Point> getCoordinates()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Geometry
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.- Specified by:
getCoordinates
in 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 com.mongodb.client.model.geojson.LineString convert()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Geometry
Converts this type to the driver type
-
convert
public com.mongodb.client.model.geojson.LineString convert(@Nullable CoordinateReferenceSystem crs)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Geometry
Converts this type to the driver type
-
-