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 booleanequals(java.lang.Object o)Deprecated.PositiongetCoordinates()Deprecated.Gets the GeoJSON coordinates of this point.PositiongetPosition()Deprecated.Gets the position of this point.GeoJsonObjectTypegetType()Deprecated.Gets the GeoJSON object type.inthashCode()Deprecated.java.lang.StringtoString()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:GeometryGets 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:
toStringin classjava.lang.Object
-
-