25#include <geos/export.h>
27#include <geos/operation/union/UnionStrategy.h>
105 std::vector<geom::Polygon*>* inputPolys;
115 static int const STRTREE_NODE_CAPACITY = 4;
131 static std::unique_ptr<geom::Geometry> restrictToPolygons(std::unique_ptr<geom::Geometry> g);
142 static std::unique_ptr<geom::Geometry>
Union(std::vector<geom::Polygon*>* polys);
143 static std::unique_ptr<geom::Geometry> Union(std::vector<geom::Polygon*>* polys,
UnionStrategy* unionFun);
154 static std::unique_ptr<geom::Geometry>
157 std::vector<geom::Polygon*> polys;
158 for(T i = start; i != end; ++i) {
162 return Union(&polys, unionStrategy);
182 , geomFactory(nullptr)
183 , unionFunction(&defaultUnionFunction)
188 , geomFactory(nullptr)
189 , unionFunction(unionFun)
198 std::unique_ptr<geom::Geometry>
Union();
214 std::unique_ptr<geom::Geometry> binaryUnion(
const std::vector<const geom::Geometry*> & geoms, std::size_t start, std::size_t end);
227 std::unique_ptr<geom::Geometry> unionSafe(std::unique_ptr<geom::Geometry> &&, std::unique_ptr<geom::Geometry> &&);
238 std::unique_ptr<geom::Geometry> unionActual(std::unique_ptr<geom::Geometry> &&, std::unique_ptr<geom::Geometry> &&)
const;
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition GeometryFactory.h:70
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:197
Definition MultiPolygon.h:58
Represents a linear polygon, which may include holes.
Definition Polygon.h:61
Provides an efficient method of unioning a collection of polygonal geometries.
Definition CascadedPolygonUnion.h:103
CascadedPolygonUnion(std::vector< geom::Polygon * > *polys)
Creates a new instance to union the given collection of Geometrys.
Definition CascadedPolygonUnion.h:180
static std::unique_ptr< geom::Geometry > Union(T start, T end, UnionStrategy *unionStrategy)
Computes the union of a set of polygonal Geometrys.
Definition CascadedPolygonUnion.h:155
static std::unique_ptr< geom::Geometry > Union(std::vector< geom::Polygon * > *polys)
Computes the union of a collection of polygonal Geometrys.
std::unique_ptr< geom::Geometry > Union()
Computes the union of the input geometries.
static std::unique_ptr< geom::Geometry > Union(const geom::MultiPolygon *polys)
Computes the union of a collection of polygonal Geometrys.
Implementation of UnionStrategy that provides overlay using the first generation overlay routines.
Definition CascadedPolygonUnion.h:50
bool isFloatingPrecision() const override
std::unique_ptr< geom::Geometry > Union(const geom::Geometry *, const geom::Geometry *) override
Definition UnionStrategy.h:40
Basic namespace for all GEOS functionalities.
Definition geos.h:39