#include <PolygonExtracter.h>
Extracts all the 2-dimensional (Polygon) components from a Geometry.
◆ PolygonExtracter()
geos::geom::util::PolygonExtracter::PolygonExtracter |
( |
std::vector< const Polygon * > & |
newComps | ) |
|
Constructs a PolygonExtracterFilter with a list in which to store Polygons found.
◆ filter_ro()
void geos::geom::util::PolygonExtracter::filter_ro |
( |
const Geometry * |
geom | ) |
|
|
overridevirtual |
◆ filter_rw()
void geos::geom::util::PolygonExtracter::filter_rw |
( |
Geometry * |
geom | ) |
|
|
overridevirtual |
◆ getPolygons()
static void geos::geom::util::PolygonExtracter::getPolygons |
( |
const Geometry & |
geom, |
|
|
std::vector< const Polygon * > & |
ret |
|
) |
| |
|
static |
Pushes the Polygon 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 PolygonExtracterFilter instance and pass it to multiple geometries.
The documentation for this class was generated from the following file: