16 #ifndef GEOS_GEOM_UTIL_POLYGONEXTRACTER_H
17 #define GEOS_GEOM_UTIL_POLYGONEXTRACTER_H
19 #include <geos/export.h>
20 #include <geos/geom/GeometryFilter.h>
21 #include <geos/geom/Polygon.h>
22 #include <geos/platform.h>
43 static void getPolygons(
const Geometry &geom, std::vector<const Polygon*>& ret)
59 if (
const Polygon *p=dynamic_cast<const Polygon *>(geom) )
65 void filter_ro(
const Geometry *geom)
67 if (
const Polygon *p=dynamic_cast<const Polygon *>(geom) )
76 std::vector<const Polygon*>& comps;
79 PolygonExtracter(
const PolygonExtracter& other);
80 PolygonExtracter& operator=(
const PolygonExtracter& rhs);