Class IteratedNoder
- Namespace
- NetTopologySuite.Noding
- Assembly
- NetTopologySuite.dll
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.
public class IteratedNoder : INoder
- Inheritance
-
IteratedNoder
- Implements
- Inherited Members
Constructors
IteratedNoder(PrecisionModel)
Initializes a new instance of the IteratedNoder class.
public IteratedNoder(PrecisionModel pm)
Parameters
Fields
MaxIterations
public const int MaxIterations = 5
Field Value
Properties
MaximumIterations
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.
public int MaximumIterations { get; set; }
Property Value
Methods
ComputeNodes(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.
public void ComputeNodes(IList<ISegmentString> segStrings)
Parameters
segStrings
IList<ISegmentString>A collection of SegmentStrings to be noded.
Exceptions
- 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.
public IList<ISegmentString> GetNodedSubstrings()