17#include <geos/export.h>
18#include <geos/geom/Geometry.h>
19#include <geos/operation/cluster/DisjointOperation.h>
20#include <geos/operation/cluster/GeometryIntersectsClusterFinder.h>
21#include <geos/operation/overlayng/OverlayNGRobust.h>
27class GEOS_DLL DisjointSubsetUnion {
36 static std::unique_ptr<geom::Geometry> Union(
const geom::Geometry* g) {
37 operation::cluster::GeometryIntersectsClusterFinder f;
38 operation::cluster::DisjointOperation op(f);
39 op.setSplitInputs(
true);
41 return op.processDisjointSubsets(*g, [](
const geom::Geometry& subset) {
42 return subset.Union();
Basic namespace for all GEOS functionalities.
Definition geos.h:39