public class ComponentCoordinateExtracter extends Object implements GeometryComponentFilter
Coordinate
from each connected component of a Geometry.| Constructor and Description |
|---|
ComponentCoordinateExtracter(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 List |
getCoordinates(Geometry geom)
Extracts the linear components from a single geometry.
|
public ComponentCoordinateExtracter(List coords)
public static List getCoordinates(Geometry geom)
ComponentCoordinateExtracter 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.Copyright © 2019. All rights reserved.