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 | ) |
|
|
explicit |
◆ combine() [1/7]
std::unique_ptr< Geometry > geos::geom::util::GeometryCombiner::combine |
( |
| ) |
|
◆ combine() [2/7]
Copies two geometries and combines the result.
- 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/7]
Copies three geometries and combines the result.
- 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/7]
std::unique_ptr< Geometry > geos::geom::util::GeometryCombiner::combine |
( |
std::unique_ptr< Geometry > && | g0, |
|
|
std::unique_ptr< Geometry > && | g1 ) |
|
static |
Combines two geometries.
- Parameters
-
g0 | a geometry to combine (ownership transferred to combined geometry) |
g1 | a geometry to combine (ownership transferred to combined geometry) |
- Returns
- the combined geometry
◆ combine() [5/7]
std::unique_ptr< Geometry > geos::geom::util::GeometryCombiner::combine |
( |
std::unique_ptr< Geometry > && | g0, |
|
|
std::unique_ptr< Geometry > && | g1, |
|
|
std::unique_ptr< Geometry > && | g2 ) |
|
static |
Combines three geometries.
- Parameters
-
g0 | a geometry to combine (ownership transferred to combined geometry) |
g1 | a geometry to combine (ownership transferred to combined geometry) |
g2 | a geometry to combine (ownership transferred to combined geometry) |
- Returns
- the combined geometry
◆ combine() [6/7]
std::unique_ptr< Geometry > geos::geom::util::GeometryCombiner::combine |
( |
std::vector< const Geometry * > const & | geoms | ) |
|
|
static |
Copies a collection of geometries and combines the result.
- Parameters
-
geoms | the geometries to combine (ownership left to caller) |
- Returns
- the combined geometry
◆ combine() [7/7]
std::unique_ptr< Geometry > geos::geom::util::GeometryCombiner::combine |
( |
std::vector< std::unique_ptr< Geometry > > && | geoms | ) |
|
|
static |
Combines a collection of geometries.
- Parameters
-
geoms | the geometries to combine (ownership transferred to combined geometry) |
- Returns
- the combined geometry
◆ extractFactory()
GeometryFactory const * geos::geom::util::GeometryCombiner::extractFactory |
( |
| ) |
const |
The documentation for this class was generated from the following file: