Search Results for

    Show / Hide Table of Contents

    Class SnappingNoder

    Nodes a set of segment strings snapping vertices and intersection points together if they lie within the given snap tolerance distance. Vertices take priority over intersection points for snapping. Input segment strings are generally only split at true node points (i.e.the output segment strings are of maximal length in the output arrangement).

    The snap tolerance should be chosen to be as small as possible while still producing a correct result. It probably only needs to be small enough to eliminate "nearly-coincident" segments, for which intersection points cannot be computed accurately. This implies a factor of about 10e-12 smaller than the magnitude of the segment coordinates.

    With an appropriate snap tolerance this algorithm appears to be very robust. So far no failure cases have been found, given a small enough snap tolerance.

    The correctness of the output is not verified by this noder. If required this can be done by ValidatingNoder.
    Inheritance
    object
    SnappingNoder
    Implements
    INoder
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.Noding.Snap
    Assembly: NetTopologySuite.dll
    Syntax
    public sealed class SnappingNoder : INoder

    Constructors

    | Edit this page View Source

    SnappingNoder(double)

    Creates a snapping noder using the given snap distance tolerance.

    Declaration
    public SnappingNoder(double snapTolerance)
    Parameters
    Type Name Description
    double snapTolerance

    Points are snapped if within this distance

    | Edit this page View Source

    SnappingNoder(double, ElevationModel)

    Creates a snapping noder using the given snap distance tolerance.

    Declaration
    public SnappingNoder(double snapTolerance, ElevationModel em)
    Parameters
    Type Name Description
    double snapTolerance

    Points are snapped if within this distance

    ElevationModel em

    An elevation model. May be null

    Methods

    | Edit this page View Source

    ComputeNodes(IList<ISegmentString>)

    Computes the noding of a set of ISegmentStrings

    Declaration
    public void ComputeNodes(IList<ISegmentString> inputSegmentStrings)
    Parameters
    Type Name Description
    IList<ISegmentString> inputSegmentStrings

    A Collection of ISegmentStrings

    | Edit this page View Source

    GetNodedSubstrings()

    Returns a IList<T> of fully noded ISegmentStrings. The ISegmentStrings have the same context as their parent.

    Declaration
    public IList<ISegmentString> GetNodedSubstrings()
    Returns
    Type Description
    IList<ISegmentString>

    Implements

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