Package org.locationtech.jts.noding
Class ValidatingNoder
java.lang.Object
org.locationtech.jts.noding.ValidatingNoder
- All Implemented Interfaces:
Noder
A wrapper for
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.- Author:
- mdavis
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionValidatingNoder
(Noder noder) Creates a noding validator wrapping the given Noder -
Method Summary
Modifier and TypeMethodDescriptionvoid
computeNodes
(Collection segStrings) Checks whether the output of the wrapped noder is fully noded.Returns aCollection
of fully nodedSegmentString
s.
-
Constructor Details
-
ValidatingNoder
Creates a noding validator wrapping the given Noder- Parameters:
noder
- the Noder to validate
-
-
Method Details
-
computeNodes
Checks whether the output of the wrapped noder is fully noded. Throws an exception if it is not.- Specified by:
computeNodes
in interfaceNoder
- Parameters:
segStrings
- a collection ofSegmentString
s to node- Throws:
TopologyException
-
getNodedSubstrings
Description copied from interface:Noder
Returns aCollection
of fully nodedSegmentString
s. The SegmentStrings have the same context as their parent.- Specified by:
getNodedSubstrings
in interfaceNoder
- Returns:
- a Collection of SegmentStrings
-