21 #ifndef GEOS_GEOM_UTIL_GEOMETRYEXTRACTER_H 22 #define GEOS_GEOM_UTIL_GEOMETRYEXTRACTER_H 47 template <
class ComponentType,
class TargetContainer>
51 if(
const ComponentType* p_c = dynamic_cast<const ComponentType*>(&geom)) {
55 dynamic_cast<const GeometryCollection*>(&geom)) {
57 p_c1->apply_ro(&extracter);
63 template <
class ComponentType,
class TargetContainer>
71 Extracter(TargetContainer& comps) : comps_(comps) {}
78 if(
const ComponentType* c = dynamic_cast<const ComponentType*>(geom)) {
Geometry classes support the concept of applying a Geometry filter to the Geometry.
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Represents a collection of heterogeneous Geometry objects.
Basic namespace for all GEOS functionalities.