Package org.meteoinfo.jts.geomgraph
Class EdgeNodingValidator
- java.lang.Object
-
- org.meteoinfo.jts.geomgraph.EdgeNodingValidator
-
public class EdgeNodingValidator extends java.lang.ObjectValidates that a collection ofEdges is correctly noded. Throws an appropriate exception if an noding error is found.
-
-
Constructor Summary
Constructors Constructor Description EdgeNodingValidator(java.util.Collection edges)Creates a new validator for the given collection ofEdges.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckValid()Checks whether the supplied edges are correctly noded.static voidcheckValid(java.util.Collection edges)Checks whether the suppliedEdges are correctly noded.static java.util.CollectiontoSegmentStrings(java.util.Collection edges)
-
-
-
Constructor Detail
-
EdgeNodingValidator
public EdgeNodingValidator(java.util.Collection edges)
Creates a new validator for the given collection ofEdges.- Parameters:
edges- a collection of Edges.
-
-
Method Detail
-
checkValid
public static void checkValid(java.util.Collection edges)
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
public static java.util.Collection toSegmentStrings(java.util.Collection edges)
-
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
-
-