public class ValidatingNoder extends Object implements Noder
Noder
s 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.FastNodingValidator
Constructor and Description |
---|
ValidatingNoder(Noder noder)
Creates a noding validator wrapping the given Noder
|
Modifier and Type | Method and Description |
---|---|
void |
computeNodes(Collection segStrings)
Checks whether the output of the wrapped noder is fully noded.
|
Collection |
getNodedSubstrings()
Returns a
Collection of fully noded SegmentString s. |
public ValidatingNoder(Noder noder)
noder
- the Noder to validatepublic void computeNodes(Collection segStrings)
computeNodes
in interface Noder
segStrings
- a collection of SegmentString
s to nodeTopologyException
public Collection getNodedSubstrings()
Noder
Collection
of fully noded SegmentString
s.
The SegmentStrings have the same context as their parent.getNodedSubstrings
in interface Noder
Copyright © 2021. All rights reserved.