Class LineStringExtracter

Hierarchy: Object , LineStringExtracter
All Implemented Interfaces: GeometryFilter
public class LineStringExtracter
implements GeometryFilter
Extracts all the LineString elements from a Geometry.
See also:
GeometryExtracter

Other

  • version: 1.7
public LineStringExtracter(List comps)
Constructs a filter with a list in which to store the elements found.
public static List getLines(Geometry geom, List lines)
Extracts the LineString elements from a single Geometry and adds them to the provided List.
Parameters:
geom - geom the geometry from which to extract
lines - lines the list to add the extracted LineStrings to
Returns:
the list argument
public static List getLines(Geometry geom)
Extracts the LineString elements from a single Geometry and returns them in a List.
Parameters:
geom - geom the geometry from which to extract
Returns:
a list containing the linear elements
public static Geometry getGeometry(Geometry geom)
Extracts the LineString elements from a single Geometry and returns them as either a LineString or MultiLineString.
Parameters:
geom - geom the geometry from which to extract
Returns:
a linear geometry
public void filter(Geometry geom)