Class CommonBitsOp
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.
Inherited Members
Namespace: NetTopologySuite.Precision
Assembly: NetTopologySuite.dll
Syntax
public class CommonBitsOp
Constructors
| Improve this Doc View SourceCommonBitsOp()
Creates a new instance of class, which reshifts result Geometry
s.
Declaration
public CommonBitsOp()
CommonBitsOp(Boolean)
Creates a new instance of class, specifying whether
the result Geometry
s should be reshifted.
Declaration
public CommonBitsOp(bool returnToOriginalPrecision)
Parameters
Type | Name | Description |
---|---|---|
Boolean | returnToOriginalPrecision |
Methods
| Improve this Doc View SourceBuffer(Geometry, Double)
Computes the buffer a point, using enhanced precision.
Declaration
public Geometry Buffer(Geometry geom0, double distance)
Parameters
Type | Name | Description |
---|---|---|
Geometry | geom0 | The Geometry to buffer. |
Double | distance | The buffer distance. |
Returns
Type | Description |
---|---|
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.
Declaration
public Geometry Difference(Geometry geom0, Geometry geom1)
Parameters
Type | Name | Description |
---|---|---|
Geometry | geom0 | The first Geometry. |
Geometry | geom1 | The second Geometry, to be subtracted from the first. |
Returns
Type | Description |
---|---|
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.
Declaration
public Geometry Intersection(Geometry geom0, Geometry geom1)
Parameters
Type | Name | Description |
---|---|---|
Geometry | geom0 | The first Geometry. |
Geometry | geom1 | The second Geometry. |
Returns
Type | Description |
---|---|
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.
Declaration
public Geometry SymDifference(Geometry geom0, Geometry geom1)
Parameters
Type | Name | Description |
---|---|---|
Geometry | geom0 | The first Geometry. |
Geometry | geom1 | The second Geometry. |
Returns
Type | Description |
---|---|
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.
Declaration
public Geometry Union(Geometry geom0, Geometry geom1)
Parameters
Type | Name | Description |
---|---|---|
Geometry | geom0 | The first Geometry. |
Geometry | geom1 | The second Geometry. |
Returns
Type | Description |
---|---|
Geometry | The Geometry representing the set-theoretic union of the input Geometries. |