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 a geometry component.
|
static List |
getCoordinates(Geometry geom)
Extracts a representative
Coordinate
from each connected component in a geometry. |
public ComponentCoordinateExtracter(List coords)
public static List getCoordinates(Geometry geom)
Coordinate
from each connected component in a geometry.
If more than one geometry is to be processed, it is more
efficient to create a single ComponentCoordinateExtracter
instance
and pass it to each geometry.
geom
- the Geometry from which to extractpublic void filter(Geometry geom)
GeometryComponentFilter
filter
in interface GeometryComponentFilter
geom
- a component of the geometry to which the filter is applied.Copyright © 2024. All rights reserved.