Search Results for

    Show / Hide Table of Contents

    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.
    Inheritance
    object
    PrecisionReducer
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.Operation.OverlayNG
    Assembly: NetTopologySuite.dll
    Syntax
    public static class PrecisionReducer

    Methods

    | Edit this page View Source

    ReducePrecision(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.

    The output is always a valid geometry. This implies that input components may be merged if they are closer than the grid precision. if merging is not desired, then the individual geometry components should be processed separately.

    The output is fully noded (i.e. coincident lines are merged and noded). This provides an effective way to node / snap-round a collection of LineStrings.
    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

    See Also

    GeometryPrecisionReducer
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX