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 booleanequals(Object obj)static LineStringfromCoordinates(List<Position> coordinates)Create a line string from coordinatesList<Position>getCoordinates()Get the coordinatesGeometrygetGeometry()Get the simple geometryGeometryTypegetGeometryType()Get the geometry typeLineStringgetLineString()Get the simple features line stringinthashCode()voidsetCoordinates(List<Position> coordinates)Set the coordinatesvoidsetLineString(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:
getGeometryTypein classGeometry- Returns:
- geometry type
-
getGeometry
public Geometry getGeometry()
Get the simple geometry- Specified by:
getGeometryin 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:
hashCodein classGeoJsonObject
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classGeoJsonObject
-
-