Package org.locationtech.jts.geom.util
Class LineStringExtracter
java.lang.Object
org.locationtech.jts.geom.util.LineStringExtracter
- All Implemented Interfaces:
GeometryFilter
Extracts all the
LineString
elements from a Geometry
.- Version:
- 1.7
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLineStringExtracter
(List comps) Constructs a filter with a list in which to store the elements found. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Performs an operation with or ongeom
.static Geometry
getGeometry
(Geometry geom) Extracts theLineString
elements from a singleGeometry
and returns them as either aLineString
orMultiLineString
.static List
static List
-
Field Details
-
comps
-
-
Constructor Details
-
LineStringExtracter
Constructs a filter with a list in which to store the elements found.
-
-
Method Details
-
getLines
- Parameters:
geom
- the geometry from which to extractlines
- the list to add the extracted LineStrings to- Returns:
- the list argument
-
getLines
- Parameters:
geom
- the geometry from which to extract- Returns:
- a list containing the linear elements
-
getGeometry
Extracts theLineString
elements from a singleGeometry
and returns them as either aLineString
orMultiLineString
.- Parameters:
geom
- the geometry from which to extract- Returns:
- a linear geometry
-
filter
Description copied from interface:GeometryFilter
Performs an operation with or ongeom
.- Specified by:
filter
in interfaceGeometryFilter
- Parameters:
geom
- aGeometry
to which the filter is applied.
-