public class ConsistentAreaTester extends Object
GeometryGraphrepresenting an area (a
MultiPolygon) has consistent semantics for area geometries. This check is required for any reasonable polygonal model (including the OGC-SFS model, as well as models which allow ring self-intersection at single points)
|Constructor and Description|
Creates a new tester for consistent areas.
|Modifier and Type||Method and Description|
Checks for two duplicate rings in an area.
Check all nodes to see if their labels are consistent with area topology.
public ConsistentAreaTester(GeometryGraph geomGraph)
geomGraph- the topology graph of the area geometry
public Coordinate getInvalidPoint()
nullif none was found
public boolean isNodeConsistentArea()
trueif this area has a consistent node labelling
public boolean hasDuplicateRings()
isNodeConsistentArea, duplicate rings can be found by checking for EdgeBundles which contain more than one EdgeEnd. (This is because topologically consistent areas cannot have two rings sharing the same line segment, unless the rings are equal). The start point of one of the equal rings will be placed in invalidPoint.
Copyright © 2020. All rights reserved.