Search Results for

    Show / Hide Table of Contents

    Class SegmentStringDissolver

    Dissolves a noded collection of ISegmentStrings to produce a set of merged linework with unique segments.

    Inheritance
    object
    SegmentStringDissolver
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.Noding
    Assembly: NetTopologySuite.dll
    Syntax
    public class SegmentStringDissolver
    Remarks

    A custom SegmentStringDissolver.ISegmentStringMerger merging strategy can be supplied. This strategy will be called when two identical (up to orientation) strings are dissolved together. The default merging strategy is simply to discard one of the merged strings.

    A common use for this class is to merge noded edges while preserving topological labelling. This requires a custom merging strategy to be supplied to merge the topology labels appropriately.

    Constructors

    | Edit this page View Source

    SegmentStringDissolver()

    Creates a dissolver with the default merging strategy.

    Declaration
    public SegmentStringDissolver()
    | Edit this page View Source

    SegmentStringDissolver(ISegmentStringMerger)

    Creates a dissolver with a user-defined merge strategy.

    Declaration
    public SegmentStringDissolver(SegmentStringDissolver.ISegmentStringMerger merger)
    Parameters
    Type Name Description
    SegmentStringDissolver.ISegmentStringMerger merger

    Properties

    | Edit this page View Source

    Dissolved

    Gets the collection of dissolved (i.e. unique) ISegmentStrings

    Declaration
    public ICollection<ISegmentString> Dissolved { get; }
    Property Value
    Type Description
    ICollection<ISegmentString>

    Methods

    | Edit this page View Source

    Dissolve(ISegmentString)

    Dissolve the given ISegmentString.

    Declaration
    public void Dissolve(ISegmentString segString)
    Parameters
    Type Name Description
    ISegmentString segString
    | Edit this page View Source

    Dissolve(IEnumerable<ISegmentString>)

    Dissolve all ISegmentStrings in the input IEnumerable<T>.

    Declaration
    public void Dissolve(IEnumerable<ISegmentString> segStrings)
    Parameters
    Type Name Description
    IEnumerable<ISegmentString> segStrings
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX