public class ValidatingNoder extends Object implements Noder
Noders 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 SegmentStrings. |
public ValidatingNoder(Noder noder)
noder - the Noder to validatepublic void computeNodes(Collection segStrings)
computeNodes in interface NodersegStrings - a collection of SegmentStrings to nodeTopologyExceptionpublic Collection getNodedSubstrings()
NoderCollection of fully noded SegmentStrings.
The SegmentStrings have the same context as their parent.getNodedSubstrings in interface NoderCopyright © 2024. All rights reserved.