19#ifndef GEOS_OP_UNION_UNARYUNION_H
20#define GEOS_OP_UNION_UNARYUNION_H
25#include <geos/export.h>
26#include <geos/geom/GeometryFactory.h>
27#include <geos/geom/BinaryOp.h>
28#include <geos/geom/Point.h>
29#include <geos/geom/LineString.h>
30#include <geos/geom/Polygon.h>
31#include <geos/geom/util/GeometryExtracter.h>
32#include <geos/operation/overlay/OverlayOp.h>
37#pragma warning(disable: 4251)
93 static std::unique_ptr<geom::Geometry>
101 static std::unique_ptr<geom::Geometry>
102 Union(
const T& geoms,
109 static std::unique_ptr<geom::Geometry>
119 geomFact(&geomFactIn)
149 std::unique_ptr<geom::Geometry>
Union();
153 template <
typename T>
155 extractGeoms(
const T& geoms)
157 for(
typename T::const_iterator
170 using namespace geom::util;
176 GeometryExtracter::extract<geom::Polygon>(geom, polygons);
177 GeometryExtracter::extract<geom::LineString>(geom, lines);
178 GeometryExtracter::extract<geom::Point>(geom, points);
193 std::unique_ptr<geom::Geometry>
194 unionNoOpt(
const geom::Geometry& g0)
203 return BinaryOp(&g0, empty.get(), overlay::overlayOp(OverlayOp::opUNION));
215 std::unique_ptr<geom::Geometry> unionWithNull(std::unique_ptr<geom::Geometry> g0,
216 std::unique_ptr<geom::Geometry> g1);
218 std::vector<const geom::Polygon*> polygons;
219 std::vector<const geom::LineString*> lines;
220 std::vector<const geom::Point*> points;
222 const geom::GeometryFactory* geomFact;
224 std::unique_ptr<geom::Geometry> empty;
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:68
std::unique_ptr< Geometry > createEmptyGeometry() const
Construct the EMPTY Geometry.
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:188
const GeometryFactory * getFactory() const
Gets the factory which contains the context in which this geometry was created.
Definition: Geometry.h:218
Unions a collection of Geometry or a single Geometry (which may be a collection) together.
Definition: UnaryUnionOp.h:89
std::unique_ptr< geom::Geometry > Union()
Gets the union of the input geometries.
Computes the geometric overlay of two Geometry.
Definition: OverlayOp.h:70
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25