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