Class PrecisionReducer
Functions to reduce the precision of a geometry by rounding it to a given precision model.
This class handles only polygonal and linear inputs. For full functionality GeometryPrecisionReducer.Inherited Members
Namespace: NetTopologySuite.Operation.OverlayNG
Assembly: NetTopologySuite.dll
Syntax
public static class PrecisionReducer
Methods
| Edit this page View SourceReducePrecision(Geometry, PrecisionModel)
Reduces the precision of a geometry by rounding and snapping it to the
supplied PrecisionModel.
The input geometry must be polygonal or linear.
Declaration
public static Geometry ReducePrecision(Geometry geom, PrecisionModel pm)
Parameters
| Type | Name | Description |
|---|---|---|
| Geometry | geom | The geometry to reduce |
| PrecisionModel | pm | The precision model to use |
Returns
| Type | Description |
|---|---|
| Geometry | The precision-reduced geometry |