Class ConsistentPolygonRingChecker
- java.lang.Object
-
- org.locationtech.jts.operation.overlay.ConsistentPolygonRingChecker
-
public class ConsistentPolygonRingChecker extends java.lang.Object
Tests whether the polygon rings in aGeometryGraph
are consistent. Used for checking if Topology errors are present after noding.- Version:
- 1.7
-
-
Field Summary
Fields Modifier and Type Field Description private PlanarGraph
graph
private int
LINKING_TO_OUTGOING
private int
SCANNING_FOR_INCOMING
-
Constructor Summary
Constructors Constructor Description ConsistentPolygonRingChecker(PlanarGraph graph)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
check(int opCode)
Tests whether the result geometry is consistentvoid
checkAll()
private java.util.List
getPotentialResultAreaEdges(DirectedEdgeStar deStar, int opCode)
private boolean
isPotentialResultAreaEdge(DirectedEdge de, int opCode)
private void
testLinkResultDirectedEdges(DirectedEdgeStar deStar, int opCode)
-
-
-
Field Detail
-
graph
private PlanarGraph graph
-
SCANNING_FOR_INCOMING
private final int SCANNING_FOR_INCOMING
- See Also:
- Constant Field Values
-
LINKING_TO_OUTGOING
private final int LINKING_TO_OUTGOING
- See Also:
- Constant Field Values
-
-
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)
-
-