public final class LineString extends Geometry
Constructor and Description |
---|
LineString(CoordinateReferenceSystem coordinateReferenceSystem,
List<Position> coordinates)
Construct an instance with the given coordinates and coordinate reference system.
|
LineString(List<Position> coordinates)
Construct an instance with the given coordinates.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<Position> |
getCoordinates()
Gets the GeoJSON coordinates of this LineString.
|
GeoJsonObjectType |
getType()
Gets the GeoJSON object type.
|
int |
hashCode() |
String |
toString() |
getCoordinateReferenceSystem, toJson
public LineString(List<Position> coordinates)
coordinates
- the coordinatespublic LineString(CoordinateReferenceSystem coordinateReferenceSystem, List<Position> coordinates)
coordinateReferenceSystem
- the coordinate reference systemcoordinates
- the coordinatespublic GeoJsonObjectType getType()
Geometry
public List<Position> getCoordinates()