com.vividsolutions.jts.geom.util
public class ComponentCoordinateExtracter extends java.lang.Object implements GeometryComponentFilter
Coordinate
from each connected component of a Geometry.| Constructor and Description |
|---|
ComponentCoordinateExtracter(java.util.List coords)
Constructs a LineExtracterFilter with a list in which to store LineStrings found.
|
| Modifier and Type | Method and Description |
|---|---|
void |
filter(Geometry geom)
Performs an operation with or on
geom. |
static java.util.List |
getCoordinates(Geometry geom)
Extracts the linear components from a single geometry.
|
public ComponentCoordinateExtracter(java.util.List coords)
public static java.util.List getCoordinates(Geometry geom)
LineExtracterFilter instance
and pass it to multiple geometries.geom - the Geometry from which to extractpublic void filter(Geometry geom)
GeometryComponentFiltergeom.filter in interface GeometryComponentFiltergeom - a Geometry to which the filter is applied.