Class LineString

java.lang.Object
com.mongodb.client.model.geojson.Geometry
com.mongodb.client.model.geojson.LineString

@Deprecated(since="2021-05-27") public final class LineString extends Geometry
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
A representation of a GeoJSON LineString.
Since:
3.1
  • Constructor Details

    • LineString

      public LineString(List<Position> coordinates)
      Deprecated.
      Construct an instance with the given coordinates.
      Parameters:
      coordinates - the coordinates
    • LineString

      public LineString(@Nullable CoordinateReferenceSystem coordinateReferenceSystem, List<Position> coordinates)
      Deprecated.
      Construct an instance with the given coordinates and coordinate reference system.
      Parameters:
      coordinateReferenceSystem - the coordinate reference system
      coordinates - the coordinates
  • Method Details

    • getType

      public GeoJsonObjectType getType()
      Deprecated.
      Description copied from class: Geometry
      Gets the GeoJSON object type.
      Specified by:
      getType in class Geometry
      Returns:
      the type
    • getCoordinates

      public List<Position> getCoordinates()
      Deprecated.
      Gets the GeoJSON coordinates of this LineString.
      Returns:
      the coordinates
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Geometry
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Geometry
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object