#include <CascadedUnion.h>
Public Member Functions | |
CascadedUnion (const std::vector< geom::Geometry * > *geoms) | |
geom::Geometry * | Union () |
Static Public Member Functions | |
static geom::Geometry * | Union (std::vector< geom::Geometry * > *geoms) |
template<class T> | |
static geom::Geometry * | Union (T start, T end) |
This algorithm is more robust than the simple iterated approach of repeatedly unioning each geometry to a result geometry.
geos::operation::geounion::CascadedUnion::CascadedUnion | ( | const std::vector< geom::Geometry * > * | geoms | ) | [inline] |
Creates a new instance to union the given collection of Geometrys.
geoms | a collection of Geometryal Geometrys ownership of elements _and_ vector are left to caller. |
geom::Geometry* geos::operation::geounion::CascadedUnion::Union | ( | ) |
Computes the union of the input geometries.
null if no input geometries were provided
static geom::Geometry* geos::operation::geounion::CascadedUnion::Union | ( | T | start, | |
T | end | |||
) | [inline, static] |
Computes the union of a set of Geometrys.
T an iterator yelding something castable to const Geometry *
start | start iterator | |
end | end iterator |
static geom::Geometry* geos::operation::geounion::CascadedUnion::Union | ( | std::vector< geom::Geometry * > * | geoms | ) | [static] |