15 #ifndef GEOS_OP_UNION_COVERAGEUNION_H
16 #define GEOS_OP_UNION_COVERAGEUNION_H
18 #include <geos/geom/LineSegment.h>
19 #include <geos/geom/Geometry.h>
22 #include <unordered_set>
28 class GeometryFactory;
36 class GEOS_DLL CoverageUnion {
38 static std::unique_ptr<geom::Geometry> Union(
const geom::Geometry* geom);
41 CoverageUnion() =
default;
43 void extractSegments(
const geom::Polygon* geom);
44 void extractSegments(
const geom::Geometry* geom);
45 void extractSegments(
const geom::LineString* geom);
47 std::unique_ptr<geom::Geometry> polygonize(
const geom::GeometryFactory* gf);
48 std::unordered_set<geos::geom::LineSegment, geos::geom::LineSegment::HashCode> segments;
49 static constexpr
double AREA_PCT_DIFF_TOL = 1e-6;
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:26