Class MultiLineString

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

public final class MultiLineString extends Geometry
A representation of a GeoJSON MultiLineString.
Since:
3.1
  • Constructor Details

    • MultiLineString

      public MultiLineString(List<List<Position>> coordinates)
      Construct an instance with the given coordinates.
      Parameters:
      coordinates - the coordinates of each line
    • MultiLineString

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