21 #ifndef GEOS_OP_UNION_CASCADEDPOLYGONUNION_H 22 #define GEOS_OP_UNION_CASCADEDPOLYGONUNION_H 24 #include <geos/export.h> 30 #include "GeometryListHolder.h" 35 class GeometryFactory;
70 std::vector<geom::Polygon*>* inputPolys;
80 static int const STRTREE_NODE_CAPACITY = 4;
96 static std::unique_ptr<geom::Geometry> restrictToPolygons(std::unique_ptr<geom::Geometry> g);
120 std::vector<geom::Polygon*> polys;
121 for(T i = start; i != end; ++i) {
122 const geom::Polygon* p = dynamic_cast<const geom::Polygon*>(*i);
123 polys.push_back(const_cast<geom::Polygon*>(p));
125 return Union(&polys);
CascadedPolygonUnion(std::vector< geom::Polygon * > *polys)
Creates a new instance to union the given collection of Geometrys.
Definition: CascadedPolygonUnion.h:143
Models a collection of Polygons.
Definition: MultiPolygon.h:59
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:188
Represents a linear polygon, which may include holes.
Definition: Polygon.h:64
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:68
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
static geom::Geometry * Union(T start, T end)
Computes the union of a set of polygonal Geometrys.
Definition: CascadedPolygonUnion.h:118
Provides an efficient method of unioning a collection of polygonal geometries.
Definition: CascadedPolygonUnion.h:68
Helper class holding Geometries, part of which are held by reference others are held exclusively.
Definition: GeometryListHolder.h:34