com.vividsolutions.jts.geom.util
Class LinearComponentExtracter
java.lang.Object
com.vividsolutions.jts.geom.util.LinearComponentExtracter
- GeometryComponentFilter
public class LinearComponentExtracter
extends java.lang.Object
LinearComponentExtracter
public LinearComponentExtracter(List lines)
Constructs a LineExtracterFilter with a list in which to store LineStrings found.
getLines
public static List getLines(Geometry geom)
Extracts the linear components from a single geometry.
If more than one geometry is to be processed, it is more
efficient to create a single LineExtracterFilter
instance
and pass it to multiple geometries.
geom
- the geometry from which to extract linear components
- the list of linear components