geos::operation::geounion::UnaryUnionOp Class Reference

#include <UnaryUnionOp.h>

List of all members.

Public Member Functions

template<class T>
 UnaryUnionOp (const T &geoms, geom::GeometryFactory &geomFactIn)
template<class T>
 UnaryUnionOp (const T &geoms)
 UnaryUnionOp (const geom::Geometry &geom)
std::auto_ptr< geom::GeometryUnion ()
 Gets the union of the input geometries.

Static Public Member Functions

template<typename T>
static std::auto_ptr< geom::GeometryUnion (const T &geoms)
template<class T>
static std::auto_ptr< geom::GeometryUnion (const T &geoms, geom::GeometryFactory &geomFact)
static std::auto_ptr< geom::GeometryUnion (const geom::Geometry &geom)


Detailed Description

Unions a collection of Geometry or a single Geometry (which may be a collection) together. By using this special-purpose operation over a collection of geometries it is possible to take advantage of various optimizations to improve performance. Heterogeneous GeometryCollections are fully supported.

The result obeys the following contract:

UnaryUnion always operates on the individual components of MultiGeometries. So it is possible to use it to "clean" invalid self-intersecting MultiPolygons (although the polygon components must all still be individually valid.)


Member Function Documentation

std::auto_ptr<geom::Geometry> geos::operation::geounion::UnaryUnionOp::Union (  ) 

Gets the union of the input geometries.

If no input geometries were provided, a POINT EMPTY is returned.

Returns:
a Geometry containing the union

an empty GEOMETRYCOLLECTION if no geometries were provided in the input


The documentation for this class was generated from the following file:
Generated on Thu Mar 14 16:37:11 2013 for GEOS by  doxygen 1.4.7