GEOS 3.13.1
|
Extracts a single representative Coordinate
from each connected component of a Geometry
.
More...
#include <ComponentCoordinateExtracter.h>
Public Member Functions | |
ComponentCoordinateExtracter (std::vector< const CoordinateXY * > &newComps) | |
void | filter_rw (Geometry *geom) override |
void | filter_ro (const Geometry *geom) override |
Public Member Functions inherited from geos::geom::GeometryComponentFilter | |
virtual bool | isDone () |
Static Public Member Functions | |
static void | getCoordinates (const Geometry &geom, std::vector< const CoordinateXY * > &ret) |
Extracts a single representative Coordinate
from each connected component of a Geometry
.
geos::geom::util::ComponentCoordinateExtracter::ComponentCoordinateExtracter | ( | std::vector< const CoordinateXY * > & | newComps | ) |
Constructs a ComponentCoordinateFilter with a list in which to store Coordinates found.
Referenced by filter_rw().
|
overridevirtual |
Reimplemented from geos::geom::GeometryComponentFilter.
|
overridevirtual |
Performs an operation with or on geom
.
geom | a Geometry to which the filter is applied. |
Reimplemented from geos::geom::GeometryComponentFilter.
References ComponentCoordinateExtracter().
|
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.