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) // warning C4251: needs to have dll-interface to be used by clients of class 43 class GeometryFactory;
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>
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;
224 std::unique_ptr<geom::Geometry> empty;
Unions a collection of Geometry or a single Geometry (which may be a collection) together.
Definition: UnaryUnionOp.h:89
Computes the geometric overlay of two Geometry.
Definition: OverlayOp.h:70
const GeometryFactory * getFactory() const
Gets the factory which contains the context in which this geometry was created.
Definition: Geometry.h:218
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:188
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:68
OverlayOp::overlayOp Adapter for use with geom::BinaryOp.
Definition: OverlayOp.h:406
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
std::unique_ptr< Geometry > createEmptyGeometry() const
Construct the EMPTY Geometry.