public class LineStringExtracter extends Objectimplements GeometryFilter
LineString elements from a
Geometry.
GeometryExtracter
| Constructor and Description |
|---|
LineStringExtracter(List
Constructs a filter with a list in which to store the elements found.
|
| Modifier and Type | Method and Description |
|---|---|
void |
filter(Geometry
Performs an operation with or on
geom.
|
static Geometry |
getGeometry(Geometry
Extracts the
LineString elements from a single
Geometry and returns them as either a LineString) or {@link MultiLineString}.
|
static List |
getLines(Geometry
|
static List |
getLines(Geometry
|
public LineStringExtracter(Listcomps)
public static ListgetLines(Geometry geom, List lines)
geom - the geometry from which to extract
lines - the list to add the extracted LineStrings to
public static ListgetLines(Geometry geom)
geom - the geometry from which to extract
public static GeometrygetGeometry(Geometry geom)
LineString elements from a single
Geometry and returns them as either a LineString) or {@link MultiLineString}.
geom - the geometry from which to extract
public void filter(Geometrygeom)
GeometryFilter
geom.
filter in interface
GeometryFilter
geom - a
Geometry to which the filter is applied.