Class IteratedNoder
Nodes a set of ISegmentStrings completely. The set of ISegmentStrings is fully noded; i.e. noding is repeated until no further intersections are detected.
Iterated noding using a Floating precision model is not guaranteed to converge, due to round off error. This problem is detected and an exception is thrown. Clients can choose to rerun the noding using a lower precision model.
Implements
Inherited Members
Namespace: NetTopologySuite.Noding
Assembly: NetTopologySuite.dll
Syntax
public class IteratedNoder : INoder
Constructors
| Improve this Doc View SourceIteratedNoder(PrecisionModel)
Initializes a new instance of the IteratedNoder class.
Declaration
public IteratedNoder(PrecisionModel pm)
Parameters
Type | Name | Description |
---|---|---|
PrecisionModel | pm |
Fields
| Improve this Doc View SourceMaxIterations
Declaration
public const int MaxIterations = 5
Field Value
Type | Description |
---|---|
Int32 |
Properties
| Improve this Doc View SourceMaximumIterations
Gets/Sets the maximum number of noding iterations performed before the noding is aborted. Experience suggests that this should rarely need to be changed from the default. The default is MaxIterations.
Declaration
public int MaximumIterations { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
| Improve this Doc View SourceComputeNodes(IList<ISegmentString>)
Fully nodes a list of ISegmentStrings, i.e. performs noding iteratively until no intersections are found between segments. Maintains labelling of edges correctly through the noding.
Declaration
public void ComputeNodes(IList<ISegmentString> segStrings)
Parameters
Type | Name | Description |
---|---|---|
IList<ISegmentString> | segStrings | A collection of SegmentStrings to be noded. |
Exceptions
Type | Condition |
---|---|
TopologyException | If the iterated noding fails to converge. |
GetNodedSubstrings()
Returns a IList of fully noded ISegmentStrings. The ISegmentStrings have the same context as their parent.
Declaration
public IList<ISegmentString> GetNodedSubstrings()
Returns
Type | Description |
---|---|
IList<ISegmentString> |