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, toJsonpublic LineString(java.util.List<Position> coordinates)
coordinates - the coordinatespublic LineString(@Nullable
CoordinateReferenceSystem coordinateReferenceSystem,
java.util.List<Position> coordinates)
coordinateReferenceSystem - the coordinate reference systemcoordinates - the coordinatespublic GeoJsonObjectType getType()
Geometrypublic java.util.List<Position> getCoordinates()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2010 - 2023 Adobe. All Rights Reserved