public class LineStringExtracter extends Object implements GeometryFilter
LineString
elements from a Geometry
.GeometryExtracter
Constructor and Description |
---|
LineStringExtracter(List comps)
Constructs a filter with a list in which to store the elements found.
|
Modifier and Type | Method and Description |
---|---|
void |
filter(Geometry geom)
Performs an operation with or on
geom . |
static Geometry |
getGeometry(Geometry geom)
Extracts the
LineString elements from a single Geometry
and returns them as either a LineString or MultiLineString . |
static List |
getLines(Geometry geom)
|
static List |
getLines(Geometry geom,
List lines)
|
public LineStringExtracter(List comps)
public static List getLines(Geometry geom, List lines)
geom
- the geometry from which to extractlines
- the list to add the extracted LineStrings topublic static List getLines(Geometry geom)
geom
- the geometry from which to extractpublic static Geometry getGeometry(Geometry geom)
LineString
elements from a single Geometry
and returns them as either a LineString
or MultiLineString
.geom
- the geometry from which to extractpublic void filter(Geometry geom)
GeometryFilter
geom
.filter
in interface GeometryFilter
geom
- a Geometry
to which the filter is applied.Copyright © 2024. All rights reserved.