public class LineStringExtracter extends java.lang.Object implements GeometryFilter
LineString elements from a Geometry.GeometryExtracter| Modifier and Type | Field and Description |
|---|---|
private java.util.List |
comps |
| Constructor and Description |
|---|
LineStringExtracter(java.util.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 java.util.List |
getLines(Geometry geom)
|
static java.util.List |
getLines(Geometry geom,
java.util.List lines)
|
public LineStringExtracter(java.util.List comps)
public static java.util.List getLines(Geometry geom, java.util.List lines)
geom - the geometry from which to extractlines - the list to add the extracted LineStrings topublic static java.util.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)
GeometryFiltergeom.filter in interface GeometryFiltergeom - a Geometry to which the filter is applied.