Package mil.nga.sf.geojson
Class MultiLineString
- java.lang.Object
-
- mil.nga.sf.geojson.GeoJsonObject
-
- mil.nga.sf.geojson.Geometry
-
- mil.nga.sf.geojson.MultiLineString
-
- All Implemented Interfaces:
Serializable
public class MultiLineString extends Geometry
Multi Line String- Author:
- yutzlejp
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MultiLineString()
ConstructorMultiLineString(List<LineString> lineStrings)
ConstructorMultiLineString(MultiLineString multiLineString)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static MultiLineString
fromCoordinates(List<List<Position>> coordinates)
Create a multi line string from coordinatesList<List<Position>>
getCoordinates()
Returns coordinates as a GeoJSON Position listGeometry
getGeometry()
Get the simple geometryGeometryType
getGeometryType()
Get the geometry typeList<LineString>
getLineStrings()
Get the line stringsMultiLineString
getMultiLineString()
Get the simple features multi line stringint
hashCode()
void
setCoordinates(List<List<Position>> coordinates)
Sets the coordinates from a GeoJSON Position listvoid
setLineStrings(List<LineString> lineStrings)
Set the line stringsvoid
setMultiLineString(MultiLineString multiLineString)
Set the simple features multi 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
-
MultiLineString
public MultiLineString()
Constructor
-
MultiLineString
public MultiLineString(List<LineString> lineStrings)
Constructor- Parameters:
lineStrings
- line string list- Since:
- 3.0.0
-
MultiLineString
public MultiLineString(MultiLineString multiLineString)
Constructor- Parameters:
multiLineString
- simple multi line string
-
-
Method Detail
-
fromCoordinates
public static MultiLineString fromCoordinates(List<List<Position>> coordinates)
Create a multi line string from coordinates- Parameters:
coordinates
- coordinates- Returns:
- multi 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<List<Position>> getCoordinates()
Returns coordinates as a GeoJSON Position list- Returns:
- the coordinates
-
setCoordinates
public void setCoordinates(List<List<Position>> coordinates)
Sets the coordinates from a GeoJSON Position list- Parameters:
coordinates
- coordinates- Since:
- 3.0.0
-
getLineStrings
public List<LineString> getLineStrings()
Get the line strings- Returns:
- list of line strings
- Since:
- 3.0.0
-
setLineStrings
public void setLineStrings(List<LineString> lineStrings)
Set the line strings- Parameters:
lineStrings
- list of line strings- Since:
- 3.0.0
-
getMultiLineString
public MultiLineString getMultiLineString()
Get the simple features multi line string- Returns:
- multi line string
- Since:
- 3.0.0
-
setMultiLineString
public void setMultiLineString(MultiLineString multiLineString)
Set the simple features multi line string- Parameters:
multiLineString
- multi line string- Since:
- 3.0.0
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classGeoJsonObject
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classGeoJsonObject
-
-