GEOS
3.14.0dev
|
#include <BoundaryOp.h>
Public Member Functions | |
BoundaryOp (const geom::Geometry &geom) | |
BoundaryOp (const geom::Geometry &geom, const algorithm::BoundaryNodeRule &bnRule) | |
std::unique_ptr< geom::Geometry > | getBoundary () |
Static Public Member Functions | |
static std::unique_ptr< geom::Geometry > | getBoundary (const geom::Geometry &g) |
static std::unique_ptr< geom::Geometry > | getBoundary (const geom::Geometry &g, const algorithm::BoundaryNodeRule &bnRule) |
static bool | hasBoundary (const geom::Geometry &geom, const algorithm::BoundaryNodeRule &boundaryNodeRule) |
Computes the boundary of a Geometry. Allows specifying the BoundaryNodeRule to be used. This operation will always return a Geometry of the appropriate dimension for the boundary (even if the input geometry is empty). The boundary of zero-dimensional geometries (Points) is always the empty GeometryCollection.
geos::operation::BoundaryOp::BoundaryOp | ( | const geom::Geometry & | geom | ) |
Creates a new instance for the given geometry.
geom | the input geometry |
geos::operation::BoundaryOp::BoundaryOp | ( | const geom::Geometry & | geom, |
const algorithm::BoundaryNodeRule & | bnRule | ||
) |
Creates a new instance for the given geometry.
geom | the input geometry |
bnRule | the Boundary Node Rule to use |
std::unique_ptr<geom::Geometry> geos::operation::BoundaryOp::getBoundary | ( | ) |
Gets the computed boundary.
|
static |
Computes a geometry representing the boundary of a geometry.
g | the input geometry |
|
static |
Computes a geometry representing the boundary of a geometry, using an explicit BoundaryNodeRule.
g | the input geometry |
bnRule | the Boundary Node Rule to use |
|
static |
Tests if a geometry has a boundary (it is non-empty). The semantics are:
geom | the geometry providing the boundary |
boundaryNodeRule | the Boundary Node Rule to use |