com.vividsolutions.jts.geom.util
public class LineStringExtracter extends java.lang.Object implements GeometryFilter
LineString
elements from a Geometry
.GeometryExtracter
Constructor and Description |
---|
LineStringExtracter(java.util.List comps)
Constructs a filter with a list in which to store the elements found.
|
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 tolist
- the list to add the extracted elements topublic static java.util.List getLines(Geometry geom)
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.