Class CommonBitsOp
- Namespace
- NetTopologySuite.Precision
- Assembly
- NetTopologySuite.dll
Provides versions of Geometry spatial functions which use common bit removal to reduce the likelihood of robustness problems. In the current implementation no rounding is performed on the reshifted result point, which means that it is possible that the returned Geometry is invalid. Client classes should check the validity of the returned result themselves.
public class CommonBitsOp
- Inheritance
-
CommonBitsOp
- Inherited Members
Constructors
CommonBitsOp()
Creates a new instance of class, which reshifts result Geometry
s.
public CommonBitsOp()
CommonBitsOp(bool)
Creates a new instance of class, specifying whether
the result Geometry
s should be reshifted.
public CommonBitsOp(bool returnToOriginalPrecision)
Parameters
returnToOriginalPrecision
bool
Methods
Buffer(Geometry, double)
Computes the buffer a point, using enhanced precision.
public Geometry Buffer(Geometry geom0, double distance)
Parameters
Returns
- Geometry
The Geometry representing the buffer of the input Geometry.
Difference(Geometry, Geometry)
Computes the set-theoretic difference of two Geometry
s, using enhanced precision.
public Geometry Difference(Geometry geom0, Geometry geom1)
Parameters
geom0
GeometryThe first Geometry.
geom1
GeometryThe second Geometry, to be subtracted from the first.
Returns
- Geometry
The Geometry representing the set-theoretic difference of the input Geometries.
Intersection(Geometry, Geometry)
Computes the set-theoretic intersection of two Geometry
s, using enhanced precision.
public Geometry Intersection(Geometry geom0, Geometry geom1)
Parameters
Returns
- Geometry
The Geometry representing the set-theoretic intersection of the input Geometries.
SymDifference(Geometry, Geometry)
Computes the set-theoretic symmetric difference of two geometries, using enhanced precision.
public Geometry SymDifference(Geometry geom0, Geometry geom1)
Parameters
Returns
- Geometry
The Geometry representing the set-theoretic symmetric difference of the input Geometries.
Union(Geometry, Geometry)
Computes the set-theoretic union of two Geometry
s, using enhanced precision.
public Geometry Union(Geometry geom0, Geometry geom1)
Parameters
Returns
- Geometry
The Geometry representing the set-theoretic union of the input Geometries.