Package com.mongodb.client.model.geojson
Class Point
- java.lang.Object
-
- com.mongodb.client.model.geojson.Geometry
-
- com.mongodb.client.model.geojson.Point
-
@Deprecated(since="2021-05-27") public final class Point extends Geometry
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.A representation of a GeoJSON Point.- Since:
- 3.1
-
-
Constructor Summary
Constructors Constructor Description Point(CoordinateReferenceSystem coordinateReferenceSystem, Position coordinate)
Deprecated.Construct an instance with the given coordinate and coordinate reference system.Point(Position coordinate)
Deprecated.Construct an instance with the given coordinate.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Deprecated.Position
getCoordinates()
Deprecated.Gets the GeoJSON coordinates of this point.Position
getPosition()
Deprecated.Gets the position of this point.GeoJsonObjectType
getType()
Deprecated.Gets the GeoJSON object type.int
hashCode()
Deprecated.java.lang.String
toString()
Deprecated.-
Methods inherited from class com.mongodb.client.model.geojson.Geometry
getCoordinateReferenceSystem, toJson
-
-
-
-
Constructor Detail
-
Point
public Point(Position coordinate)
Deprecated.Construct an instance with the given coordinate.- Parameters:
coordinate
- the non-null coordinate of the point
-
Point
public Point(@Nullable CoordinateReferenceSystem coordinateReferenceSystem, Position coordinate)
Deprecated.Construct an instance with the given coordinate and coordinate reference system.- Parameters:
coordinateReferenceSystem
- the coordinate reference systemcoordinate
- the non-null coordinate of the point
-
-
Method Detail
-
getType
public GeoJsonObjectType getType()
Deprecated.Description copied from class:Geometry
Gets the GeoJSON object type.
-
getCoordinates
public Position getCoordinates()
Deprecated.Gets the GeoJSON coordinates of this point.- Returns:
- the coordinates
-
getPosition
public Position getPosition()
Deprecated.Gets the position of this point.- Returns:
- the position
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
-