Class EdgeNodingValidator
java.lang.Object
org.locationtech.jts.geomgraph.EdgeNodingValidator
Validates that a collection of
Edges is correctly noded.
Throws an appropriate exception if an noding error is found.
Uses FastNodingValidator to perform the validation.- Version:
- 1.7
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEdgeNodingValidator(Collection edges) Creates a new validator for the given collection ofEdges. -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks whether the supplied edges are correctly noded.static voidcheckValid(Collection edges) Checks whether the suppliedEdges are correctly noded.static CollectiontoSegmentStrings(Collection edges)
-
Constructor Details
-
EdgeNodingValidator
Creates a new validator for the given collection ofEdges.- Parameters:
edges- a collection of Edges.
-
-
Method Details
-
checkValid
Checks whether the suppliedEdges are correctly noded. Throws aTopologyExceptionif they are not.- Parameters:
edges- a collection of Edges.- Throws:
TopologyException- if the SegmentStrings are not correctly noded
-
toSegmentStrings
-
checkValid
public void checkValid()Checks whether the supplied edges are correctly noded. Throws an exception if they are not.- Throws:
TopologyException- if the SegmentStrings are not correctly noded
-