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:
-
Constructor Summary
ConstructorsConstructorDescriptionLineStringExtracter(List comps) Constructs a filter with a list in which to store the elements found. -
Method Summary
Modifier and TypeMethodDescriptionvoidPerforms an operation with or ongeom.static GeometrygetGeometry(Geometry geom) Extracts theLineStringelements from a singleGeometryand returns them as either aLineStringorMultiLineString.static Liststatic List
-
Constructor Details
-
LineStringExtracter
Constructs a filter with a list in which to store the elements found.
-
-
Method Details
-
getLines
-
getLines
- Parameters:
geom- the geometry from which to extract- Returns:
- a list containing the linear elements
-
getGeometry
Extracts theLineStringelements from a singleGeometryand returns them as either aLineStringorMultiLineString.- Parameters:
geom- the geometry from which to extract- Returns:
- a linear geometry
-
filter
Description copied from interface:GeometryFilterPerforms an operation with or ongeom.- Specified by:
filterin interfaceGeometryFilter- Parameters:
geom- aGeometryto which the filter is applied.
-