Class EdgeNodingValidator

java.lang.Object
org.locationtech.jts.geomgraph.EdgeNodingValidator

public class EdgeNodingValidator extends Object
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 Details

    • EdgeNodingValidator

      public EdgeNodingValidator(Collection edges)
      Creates a new validator for the given collection of Edges.
      Parameters:
      edges - a collection of Edges.
  • Method Details

    • checkValid

      public static void checkValid(Collection edges)
      Checks whether the supplied Edges are correctly noded. Throws a TopologyException if they are not.
      Parameters:
      edges - a collection of Edges.
      Throws:
      TopologyException - if the SegmentStrings are not correctly noded
    • toSegmentStrings

      public static Collection toSegmentStrings(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