Table of Contents

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 Geometrys.

public CommonBitsOp()

CommonBitsOp(bool)

Creates a new instance of class, specifying whether the result Geometrys 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

geom0 Geometry

The Geometry to buffer.

distance double

The buffer distance.

Returns

Geometry

The Geometry representing the buffer of the input Geometry.

Difference(Geometry, Geometry)

Computes the set-theoretic difference of two Geometrys, using enhanced precision.

public Geometry Difference(Geometry geom0, Geometry geom1)

Parameters

geom0 Geometry

The first Geometry.

geom1 Geometry

The 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 Geometrys, using enhanced precision.

public Geometry Intersection(Geometry geom0, Geometry geom1)

Parameters

geom0 Geometry

The first Geometry.

geom1 Geometry

The second Geometry.

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

geom0 Geometry

The first Geometry.

geom1 Geometry

The second Geometry.

Returns

Geometry

The Geometry representing the set-theoretic symmetric difference of the input Geometries.

Union(Geometry, Geometry)

Computes the set-theoretic union of two Geometrys, using enhanced precision.

public Geometry Union(Geometry geom0, Geometry geom1)

Parameters

geom0 Geometry

The first Geometry.

geom1 Geometry

The second Geometry.

Returns

Geometry

The Geometry representing the set-theoretic union of the input Geometries.