public class GeoJSONLineString extends Object implements GeoJSONGeometryObject
| Constructor and Description |
|---|
GeoJSONLineString() |
| Modifier and Type | Method and Description |
|---|---|
static GeoJSONLineString |
create(List<GeoJSONCoordinate> points) |
boolean |
equals(Object obj) |
List<GeoJSONCoordinate> |
getCoordinates() |
int |
hashCode() |
boolean |
isEmpty() |
GeoJSONLineString |
setCoordinates(List<GeoJSONCoordinate> coordinates) |
GeoJSONLineString |
subLineString(int fromIndex,
int toIndex) |
String |
toString() |
String |
toWKT() |
void |
validate()
Checks if the instance is in a valid / useful state.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetTypeNamepublic List<GeoJSONCoordinate> getCoordinates()
public GeoJSONLineString setCoordinates(List<GeoJSONCoordinate> coordinates)
public static GeoJSONLineString create(List<GeoJSONCoordinate> points)
public GeoJSONLineString subLineString(int fromIndex, int toIndex)
fromIndex - low coordinate-pair (inclusive) of the subLineStringtoIndex - high coordinate-pair (exclusive) of the subLineStringGeoJSONCoordinatespublic boolean isEmpty()
isEmpty in interface GeoJSONGeometryObjecttrue if the element does not contain any coordinatespublic void validate()
ValidatableIllegalArgumentException including a description of the
invalid state is thrown.validate in interface Validatablepublic String toWKT()
toWKT in interface GeoJSONGeometryObjectCopyright © 2018. All rights reserved.