Package org.locationtech.jts.geom.util
Class ComponentCoordinateExtracter
java.lang.Object
org.locationtech.jts.geom.util.ComponentCoordinateExtracter
- All Implemented Interfaces:
GeometryComponentFilter
Extracts a single representative
Coordinate
from each connected component of a Geometry
.- Version:
- 1.9
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionComponentCoordinateExtracter
(List coords) Constructs a LineExtracterFilter with a list in which to store LineStrings found. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Performs an operation with or ongeom
.static List
getCoordinates
(Geometry geom) Extracts the linear components from a single geometry.
-
Field Details
-
coords
-
-
Constructor Details
-
ComponentCoordinateExtracter
Constructs a LineExtracterFilter with a list in which to store LineStrings found.
-
-
Method Details
-
getCoordinates
Extracts the linear components from a single geometry. If more than one geometry is to be processed, it is more efficient to create a singleComponentCoordinateExtracter
instance and pass it to multiple geometries.- Parameters:
geom
- the Geometry from which to extract- Returns:
- a list of Coordinates
-
filter
Description copied from interface:GeometryComponentFilter
Performs an operation with or ongeom
.- Specified by:
filter
in interfaceGeometryComponentFilter
- Parameters:
geom
- aGeometry
to which the filter is applied.
-