Class ConsistentPolygonRingChecker


  • public class ConsistentPolygonRingChecker
    extends java.lang.Object
    Tests whether the polygon rings in a GeometryGraph are consistent. Used for checking if Topology errors are present after noding.
    Version:
    1.7
    • Constructor Detail

      • ConsistentPolygonRingChecker

        public ConsistentPolygonRingChecker​(PlanarGraph graph)
    • Method Detail

      • checkAll

        public void checkAll()
      • check

        public void check​(int opCode)
        Tests whether the result geometry is consistent
        Throws:
        TopologyException - if inconsistent topology is found
      • getPotentialResultAreaEdges

        private java.util.List getPotentialResultAreaEdges​(DirectedEdgeStar deStar,
                                                           int opCode)
      • isPotentialResultAreaEdge

        private boolean isPotentialResultAreaEdge​(DirectedEdge de,
                                                  int opCode)
      • testLinkResultDirectedEdges

        private void testLinkResultDirectedEdges​(DirectedEdgeStar deStar,
                                                 int opCode)