Class ValidatingNoder
A wrapper for INoders which validates the output arrangement is correctly noded. An arrangement of line segments is fully noded if there is no line segment which has another segment intersecting its interior. If the noding is not correct, a TopologyException is thrown with details of the first invalid location found.
Implements
Inherited Members
Namespace: NetTopologySuite.Noding
Assembly: NetTopologySuite.dll
Syntax
public sealed class ValidatingNoder : INoder
Constructors
| Improve this Doc View SourceValidatingNoder(INoder)
Creates a noding validator wrapping the given noder
Declaration
public ValidatingNoder(INoder noder)
Parameters
Type | Name | Description |
---|---|---|
INoder | noder | The noder to validate |
Methods
| Improve this Doc View SourceComputeNodes(IList<ISegmentString>)
Checks whether the output of the wrapped noder is fully noded. Throws an exception if it is not.
Declaration
public void ComputeNodes(IList<ISegmentString> segStrings)
Parameters
Type | Name | Description |
---|---|---|
IList<ISegmentString> | segStrings |
Exceptions
Type | Condition |
---|---|
TopologyException |
GetNodedSubstrings()
Declaration
public IList<ISegmentString> GetNodedSubstrings()
Returns
Type | Description |
---|---|
IList<ISegmentString> |