Package com.mongodb.client.model.geojson
Class Geometry
- java.lang.Object
-
- com.mongodb.client.model.geojson.Geometry
-
- Direct Known Subclasses:
GeometryCollection,LineString,MultiLineString,MultiPoint,MultiPolygon,Point,Polygon
@Deprecated(since="2021-05-27") public abstract class Geometry extends java.lang.ObjectDeprecated.Usage of this API is not supported in AEM as a Cloud Service.An abstract class for representations of GeoJSON geometry objects.- Since:
- 3.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Deprecated.CoordinateReferenceSystemgetCoordinateReferenceSystem()Deprecated.Gets the coordinate reference system, which may be nullabstract GeoJsonObjectTypegetType()Deprecated.Gets the GeoJSON object type.inthashCode()Deprecated.java.lang.StringtoJson()Deprecated.Converts to GeoJSON representation
-
-
-
Method Detail
-
getType
public abstract GeoJsonObjectType getType()
Deprecated.Gets the GeoJSON object type.- Returns:
- the type
-
toJson
public java.lang.String toJson()
Deprecated.Converts to GeoJSON representation- Returns:
- the GeoJSON representation
-
getCoordinateReferenceSystem
@Nullable public CoordinateReferenceSystem getCoordinateReferenceSystem()
Deprecated.Gets the coordinate reference system, which may be null- Returns:
- the possibly-null coordinate reference system
-
equals
public boolean equals(java.lang.Object o)
Deprecated.- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCodein classjava.lang.Object
-
-