Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | Related Pages

geos::geom::util::GeometryCombiner Class Reference

#include <GeometryCombiner.h>

List of all members.

Public Member Functions

 GeometryCombiner (std::vector< Geometry * > const &geoms)
Geometrycombine ()

Static Public Member Functions

Geometrycombine (std::vector< Geometry * > const &geoms)
Geometrycombine (Geometry *g0, Geometry *g1)
Geometrycombine (Geometry *g0, Geometry *g1, Geometry *g2)
GeometryFactory const * extractFactory (std::vector< Geometry * > const &geoms)


Detailed Description

Combines Geometrys to produce a GeometryCollection of the most appropriate type. Input geometries which are already collections will have their elements extracted first. No validation of the result geometry is performed. (The only case where invalidity is possible is where Polygonal geometries are combined and result in a self-intersection).

See also:
GeometryFactory::buildGeometry


Constructor & Destructor Documentation

geos::geom::util::GeometryCombiner::GeometryCombiner std::vector< Geometry * > const &  geoms  ) 
 

Creates a new combiner for a collection of geometries

Parameters:
geoms the geometries to combine


Member Function Documentation

Geometry* geos::geom::util::GeometryCombiner::combine  ) 
 

Computes the combination of the input geometries to produce the most appropriate Geometry or GeometryCollection

Returns:
a Geometry which is the combination of the inputs

Geometry* geos::geom::util::GeometryCombiner::combine Geometry g0,
Geometry g1,
Geometry g2
[static]
 

Combines three geometries.

Parameters:
g0 a geometry to combine
g1 a geometry to combine
g2 a geometry to combine
Returns:
the combined geometry

Geometry* geos::geom::util::GeometryCombiner::combine Geometry g0,
Geometry g1
[static]
 

Combines two geometries.

Parameters:
g0 a geometry to combine
g1 a geometry to combine
Returns:
the combined geometry

Geometry* geos::geom::util::GeometryCombiner::combine std::vector< Geometry * > const &  geoms  )  [static]
 

Combines a collection of geometries.

Parameters:
geoms the geometries to combine
Returns:
the combined geometry

GeometryFactory const* geos::geom::util::GeometryCombiner::extractFactory std::vector< Geometry * > const &  geoms  )  [static]
 

Extracts the GeometryFactory used by the geometries in a collection

Parameters:
geoms 
Returns:
a GeometryFactory


The documentation for this class was generated from the following file:
Generated on Thu Oct 7 20:18:28 2010 for GEOS by  doxygen 1.3.9.1