checkConsistentArea method
Checks that the arrangement of edges in a polygonal geometry graph forms a consistent area.
@param graph
@see ConsistentAreaTester
Implementation
void checkConsistentArea(GeometryGraph graph) {
ConsistentAreaTester cat = new ConsistentAreaTester(graph);
bool isValidArea = cat.isNodeConsistentArea();
if (!isValidArea) {
validErr = new TopologyValidationError.withCoordinate(
TopologyValidationError.SELF_INTERSECTION, cat.getInvalidPoint());
return;
}
if (cat.hasDuplicateRings()) {
validErr = new TopologyValidationError.withCoordinate(
TopologyValidationError.DUPLICATE_RINGS, cat.getInvalidPoint());
}
}