Class SegmentStringDissolver
Dissolves a noded collection of ISegmentStrings to produce a set of merged linework with unique segments.
Inherited Members
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
| Improve this Doc View SourceSegmentStringDissolver()
Creates a dissolver with the default merging strategy.
Declaration
public SegmentStringDissolver()
SegmentStringDissolver(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
| Improve this Doc View SourceDissolved
Gets the collection of dissolved (i.e. unique) ISegmentStrings
Declaration
public ICollection<ISegmentString> Dissolved { get; }
Property Value
Type | Description |
---|---|
ICollection<ISegmentString> |
Methods
| Improve this Doc View SourceDissolve(ISegmentString)
Dissolve the given ISegmentString.
Declaration
public void Dissolve(ISegmentString segString)
Parameters
Type | Name | Description |
---|---|---|
ISegmentString | segString |
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 |