23 #include <geos/export.h>
24 #include <geos/geom/GeometryFilter.h>
25 #include <geos/geom/GeometryCollection.h>
52 if(geom->isCollection()) {
53 GeometryLister::Lister lister(lst);
54 geom->apply_ro(&lister);
70 Lister(std::vector<const Geometry*>& p_geoms) : geoms(p_geoms) {}
72 std::vector<const Geometry*>& geoms;
75 filter_ro(
const Geometry* geom)
override
77 if(!geom->isCollection()) {
78 geoms.push_back(geom);
Geometry classes support the concept of applying a Geometry filter to the Geometry.
Definition: GeometryFilter.h:45
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:197
Definition: GeometryLister.h:36
static void list(const Geometry *geom, std::vector< const Geometry * > &lst)
Definition: GeometryLister.h:50
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25