Combines Geometrys to produce a GeometryCollection of the most appropriate type.
More...
#include <GeometryCombiner.h>
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
◆ GeometryCombiner()
geos::geom::util::GeometryCombiner::GeometryCombiner |
( |
std::vector< const Geometry * > const & |
geoms | ) |
|
Creates a new combiner for a collection of geometries.
- Parameters
-
geoms | the geometries to combine |
◆ combine() [1/4]
static std::unique_ptr<Geometry> geos::geom::util::GeometryCombiner::combine |
( |
std::vector< const Geometry * > const & |
geoms | ) |
|
|
static |
Combines a collection of geometries.
- Parameters
-
geoms | the geometries to combine (ownership left to caller) |
- Returns
- the combined geometry
◆ combine() [2/4]
static std::unique_ptr<Geometry> geos::geom::util::GeometryCombiner::combine |
( |
const Geometry * |
g0, |
|
|
const Geometry * |
g1 |
|
) |
| |
|
static |
Combines two geometries.
- Parameters
-
g0 | a geometry to combine (ownership left to caller) |
g1 | a geometry to combine (ownership left to caller) |
- Returns
- the combined geometry
◆ combine() [3/4]
Combines three geometries.
- Parameters
-
g0 | a geometry to combine (ownership left to caller) |
g1 | a geometry to combine (ownership left to caller) |
g2 | a geometry to combine (ownership left to caller) |
- Returns
- the combined geometry
◆ combine() [4/4]
std::unique_ptr<Geometry> geos::geom::util::GeometryCombiner::combine |
( |
| ) |
|
◆ extractFactory()
static GeometryFactory const* geos::geom::util::GeometryCombiner::extractFactory |
( |
std::vector< const Geometry * > const & |
geoms | ) |
|
|
static |
The documentation for this class was generated from the following file: