Class ConsistentPolygonRingChecker
- java.lang.Object
-
- org.locationtech.jts.operation.overlay.ConsistentPolygonRingChecker
-
public class ConsistentPolygonRingChecker extends java.lang.ObjectTests whether the polygon rings in aGeometryGraphare consistent. Used for checking if Topology errors are present after noding.- Version:
- 1.7
-
-
Field Summary
Fields Modifier and Type Field Description private PlanarGraphgraphprivate intLINKING_TO_OUTGOINGprivate intSCANNING_FOR_INCOMING
-
Constructor Summary
Constructors Constructor Description ConsistentPolygonRingChecker(PlanarGraph graph)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheck(int opCode)Tests whether the result geometry is consistentvoidcheckAll()private java.util.ListgetPotentialResultAreaEdges(DirectedEdgeStar deStar, int opCode)private booleanisPotentialResultAreaEdge(DirectedEdge de, int opCode)private voidtestLinkResultDirectedEdges(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)
-
-