Table of Contents

Class SegmentStringDissolver

Namespace
NetTopologySuite.Noding
Assembly
NetTopologySuite.dll

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

public class SegmentStringDissolver
Inheritance
SegmentStringDissolver
Inherited Members

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

SegmentStringDissolver()

Creates a dissolver with the default merging strategy.

public SegmentStringDissolver()

SegmentStringDissolver(ISegmentStringMerger)

Creates a dissolver with a user-defined merge strategy.

public SegmentStringDissolver(SegmentStringDissolver.ISegmentStringMerger merger)

Parameters

merger SegmentStringDissolver.ISegmentStringMerger

Properties

Dissolved

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

public ICollection<ISegmentString> Dissolved { get; }

Property Value

ICollection<ISegmentString>

Methods

Dissolve(ISegmentString)

Dissolve the given ISegmentString.

public void Dissolve(ISegmentString segString)

Parameters

segString ISegmentString

Dissolve(IEnumerable<ISegmentString>)

Dissolve all ISegmentStrings in the input IEnumerable<T>.

public void Dissolve(IEnumerable<ISegmentString> segStrings)

Parameters

segStrings IEnumerable<ISegmentString>