ConsistentAreaTester class

Checks that a {@link GeometryGraph} representing an area (a {@link Polygon} or {@link 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)

Checks include:

  • test for rings which properly intersect (but not for ring self-intersection, or intersections at vertices)
  • test for consistent labelling at all node points (this detects vertex intersections with invalid topology, i.e. where the exterior side of an edge lies in the interior of the area)
  • test for duplicate rings
If an inconsistency is found the location of the problem is recorded and is available to the caller.

@version 1.7

Constructors

ConsistentAreaTester(GeometryGraph geomGraph)
Creates a new tester for consistent areas.

Properties

geomGraph GeometryGraph
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
invalidPoint Coordinate?
getter/setter pair
li LineIntersector
final
nodeGraph RelateNodeGraph
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getInvalidPoint() Coordinate?
@return the intersection point, or null if none was found
hasDuplicateRings() bool
Checks for two duplicate rings in an area. Duplicate rings are rings that are topologically equal (that is, which have the same sequence of points up to point order). If the area is topologically consistent (determined by calling the 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.
isNodeConsistentArea() bool
Check all nodes to see if their labels are consistent with area topology.
isNodeEdgeAreaLabelsConsistent() bool
Check all nodes to see if their labels are consistent. If any are not, return false
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited