#include <CommonBitsOp.h>
Public Member Functions | |
CommonBitsOp () | |
CommonBitsOp (bool nReturnToOriginalPrecision) | |
geom::Geometry * | intersection (const geom::Geometry *geom0, const geom::Geometry *geom1) |
geom::Geometry * | Union (const geom::Geometry *geom0, const geom::Geometry *geom1) |
geom::Geometry * | difference (const geom::Geometry *geom0, const geom::Geometry *geom1) |
geom::Geometry * | symDifference (const geom::Geometry *geom0, const geom::Geometry *geom1) |
geom::Geometry * | buffer (const geom::Geometry *geom0, double distance) |
geom::Geometry * | computeResultPrecision (geom::Geometry *result) |
In the current implementation no rounding is performed on the reshifted result geometry, which means that it is possible that the returned Geometry is invalid. Client classes should check the validity of the returned result themselves.
geos::precision::CommonBitsOp::CommonBitsOp | ( | ) |
Creates a new instance of class, which reshifts result Geometry
geos::precision::CommonBitsOp::CommonBitsOp | ( | bool | nReturnToOriginalPrecision | ) |
Creates a new instance of class, specifying whether the result Geometrys should be reshifted.
returnToOriginalPrecision |
geom::Geometry* geos::precision::CommonBitsOp::intersection | ( | const geom::Geometry * | geom0, | |
const geom::Geometry * | geom1 | |||
) |
Computes the set-theoretic intersection of two Geometry, using enhanced precision.
geom0 | the first Geometry | |
geom1 | the second Geometry |
geom::Geometry* geos::precision::CommonBitsOp::Union | ( | const geom::Geometry * | geom0, | |
const geom::Geometry * | geom1 | |||
) |
Computes the set-theoretic union of two Geometry, using enhanced precision.
geom0 | the first Geometry | |
geom1 | the second Geometry |
geom::Geometry* geos::precision::CommonBitsOp::difference | ( | const geom::Geometry * | geom0, | |
const geom::Geometry * | geom1 | |||
) |
Computes the set-theoretic difference of two Geometry, using enhanced precision.
geom0 | the first Geometry | |
geom1 | the second Geometry, to be subtracted from the first |
geom::Geometry* geos::precision::CommonBitsOp::symDifference | ( | const geom::Geometry * | geom0, | |
const geom::Geometry * | geom1 | |||
) |
Computes the set-theoretic symmetric difference of two geometries, using enhanced precision.
geom0 | the first Geometry | |
geom1 | the second Geometry |
geom::Geometry* geos::precision::CommonBitsOp::buffer | ( | const geom::Geometry * | geom0, | |
double | distance | |||
) |
Computes the buffer a geometry, using enhanced precision.
geom0 | the Geometry to buffer | |
distance | the buffer distance |
geom::Geometry* geos::precision::CommonBitsOp::computeResultPrecision | ( | geom::Geometry * | result | ) |
If required, returning the result to the orginal precision if required.
In this current implementation, no rounding is performed on the reshifted result geometry, which means that it is possible that the returned Geometry is invalid.
result | the result Geometry to modify |