Class LineString



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

      • LineString

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

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