Package mil.nga.sf.geojson
Class LineString
- java.lang.Object
-
- mil.nga.sf.geojson.GeoJsonObject
-
- mil.nga.sf.geojson.Geometry
-
- mil.nga.sf.geojson.LineString
-
- All Implemented Interfaces:
Serializable
public class LineString extends Geometry
Line String- Author:
- yutzlejp
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LineString()
ConstructorLineString(List<Point> points)
ConstructorLineString(LineString lineString)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static LineString
fromCoordinates(List<Position> coordinates)
Create a line string from coordinatesList<Position>
getCoordinates()
Get the coordinatesGeometry
getGeometry()
Get the simple geometryGeometryType
getGeometryType()
Get the geometry typeLineString
getLineString()
Get the simple features line stringint
hashCode()
void
setCoordinates(List<Position> coordinates)
Set the coordinatesvoid
setLineString(LineString lineString)
Set the simple features line string-
Methods inherited from class mil.nga.sf.geojson.Geometry
getSimpleGeometry, getType
-
Methods inherited from class mil.nga.sf.geojson.GeoJsonObject
getBbox, getForeignMember, getForeignMembers, hasForeignMember, hasForeignMembers, setBbox, setForeignMember
-
-
-
-
Constructor Detail
-
LineString
public LineString()
Constructor
-
LineString
public LineString(List<Point> points)
Constructor- Parameters:
points
- list of points- Since:
- 3.0.0
-
LineString
public LineString(LineString lineString)
Constructor- Parameters:
lineString
- simple line string
-
-
Method Detail
-
fromCoordinates
public static LineString fromCoordinates(List<Position> coordinates)
Create a line string from coordinates- Parameters:
coordinates
- coordinates- Returns:
- line string
- Since:
- 3.0.0
-
getGeometryType
public GeometryType getGeometryType()
Get the geometry type- Specified by:
getGeometryType
in classGeometry
- Returns:
- geometry type
-
getGeometry
public Geometry getGeometry()
Get the simple geometry- Specified by:
getGeometry
in classGeometry
- Returns:
- simple geometry
-
getCoordinates
public List<Position> getCoordinates()
Get the coordinates- Returns:
- list of positions
-
setCoordinates
public void setCoordinates(List<Position> coordinates)
Set the coordinates- Parameters:
coordinates
- coordinates
-
getLineString
public LineString getLineString()
Get the simple features line string- Returns:
- line string
- Since:
- 3.0.0
-
setLineString
public void setLineString(LineString lineString)
Set the simple features line string- Parameters:
lineString
- line string- Since:
- 3.0.0
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classGeoJsonObject
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classGeoJsonObject
-
-