public class LineString extends Geometry
| Constructor and Description |
|---|
LineString()
Constructor
|
LineString(LineString lineString)
Constructor
|
LineString(List<Point> points)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static LineString |
fromCoordinates(List<Position> coordinates)
Create a line string from coordinates
|
List<Position> |
getCoordinates()
Get the coordinates
|
Geometry |
getGeometry()
Get the simple geometry
|
GeometryType |
getGeometryType()
Get the geometry type
|
LineString |
getLineString()
Get the simple features line string
|
void |
setCoordinates(List<Position> coordinates)
Set the coordinates
|
void |
setLineString(LineString lineString)
Set the simple features line string
|
getBbox, getForeignMember, getForeignMembers, hasForeignMember, hasForeignMembers, setBbox, setForeignMemberpublic LineString()
public LineString(List<Point> points)
points - list of pointspublic LineString(LineString lineString)
lineString - simple line stringpublic static LineString fromCoordinates(List<Position> coordinates)
coordinates - coordinatespublic GeometryType getGeometryType()
getGeometryType in class Geometrypublic Geometry getGeometry()
getGeometry in class Geometrypublic List<Position> getCoordinates()
public void setCoordinates(List<Position> coordinates)
coordinates - coordinatespublic LineString getLineString()
public void setLineString(LineString lineString)
lineString - line stringCopyright © 2021 National Geospatial-Intelligence Agency. All rights reserved.