GEOS  3.9.1
Public Member Functions | Static Public Member Functions | List of all members
geos::operation::geounion::CascadedUnion Class Reference

Provides an efficient method of unioning a collection of Geometries. More...

#include <CascadedUnion.h>

Public Member Functions

 CascadedUnion (const std::vector< geom::Geometry * > *geoms)
 
geom::GeometryUnion ()
 

Static Public Member Functions

static geom::GeometryUnion (std::vector< geom::Geometry * > *geoms)
 
template<class T >
static geom::GeometryUnion (T start, T end)
 

Detailed Description

Provides an efficient method of unioning a collection of Geometries.

This algorithm is more robust than the simple iterated approach of repeatedly unioning each geometry to a result geometry.

Constructor & Destructor Documentation

◆ CascadedUnion()

geos::operation::geounion::CascadedUnion::CascadedUnion ( const std::vector< geom::Geometry * > *  geoms)
inline

Creates a new instance to union the given collection of geom::Geometrys.

Parameters
geomsa collection of geom::Geometrys. Ownership of elements and vector are left to caller.

Member Function Documentation

◆ Union() [1/3]

geom::Geometry* geos::operation::geounion::CascadedUnion::Union ( )

Computes the union of the input geometries.

Returns
the union of the input geometries
null if no input geometries were provided

◆ Union() [2/3]

static geom::Geometry* geos::operation::geounion::CascadedUnion::Union ( std::vector< geom::Geometry * > *  geoms)
static

Computes the union of a collection of geom::Geometrys.

Parameters
geomsa collection of geom::Geometrys. ownership of elements and vector are left to caller.

◆ Union() [3/3]

template<class T >
static geom::Geometry* geos::operation::geounion::CascadedUnion::Union ( start,
end 
)
inlinestatic

Computes the union of a set of geom::Geometrys.

Template Parameters
Tan iterator yelding something castable to const Geometry *
Parameters
startstart iterator
endend iterator

The documentation for this class was generated from the following file: