Extracts a single representative Coordinate from each connected component of a Geometry.
More...
#include <ComponentCoordinateExtracter.h>
Extracts a single representative Coordinate from each connected component of a Geometry.
- Version
- 1.9
◆ ComponentCoordinateExtracter()
geos::geom::util::ComponentCoordinateExtracter::ComponentCoordinateExtracter |
( |
std::vector< const CoordinateXY * > & |
newComps | ) |
|
Constructs a ComponentCoordinateFilter with a list in which to store Coordinates found.
◆ filter_rw()
void geos::geom::util::ComponentCoordinateExtracter::filter_rw |
( |
Geometry * |
geom | ) |
|
|
overridevirtual |
◆ getCoordinates()
static void geos::geom::util::ComponentCoordinateExtracter::getCoordinates |
( |
const Geometry & |
geom, |
|
|
std::vector< const CoordinateXY * > & |
ret |
|
) |
| |
|
static |
Push the linear components from a single geometry into the provided vector. If more than one geometry is to be processed, it is more efficient to create a single ComponentCoordinateFilter instance and pass it to multiple geometries.
The documentation for this class was generated from the following file: