Class: ConnectedInteriorTester

jsts.operation.valid.ConnectedInteriorTester

new ConnectedInteriorTester()

This class tests that the interior of an area Geometry ( Polygon or MultiPolygon ) is connected. This can happen if:
  • a shell self-intersects
  • one or more holes form a connected chain touching a shell at two different points
  • one or more holes form a ring around a subset of the interior
If a disconnected situation is found the location of the problem is recorded.
Version:
  • 1.7
Source:

Methods

(static) findDifferentPoint(coord, pt) → {jsts.geom.Coordinate}

Parameters:
Name Type Description
coord Array.<jsts.geom.Coordinate> A coordinate array.
pt jsts.geom.Coordinate
Source:
Returns:
Type
jsts.geom.Coordinate

buildEdgeRings()

Form DirectedEdges in graph into Minimal EdgeRings. (Minimal Edgerings must be used, because only they are guaranteed to provide a correct isHole computation)
Source:

getCoordinate() → {jsts.geom.Coordinate}

Returns the coordinate for a disconnected interior
Source:
Returns:
the coordinate.
Type
jsts.geom.Coordinate

hasUnvisitedShellEdge() → {Boolean}

Check if any shell ring has an unvisited edge. A shell ring is a ring which is not a hole and which has the interior of the parent area on the RHS. (Note that there may be non-hole rings with the interior on the LHS, since the interior of holes will also be polygonized into CW rings by the linkAllDirectedEdges() step)
Source:
Returns:
true if there is an unvisited edge in a non-hole ring.
Type
Boolean

isInteriorsConnected() → {Boolean}

Source:
Returns:
Type
Boolean

visitShellInteriors()

Mark all the edges for the edgeRings corresponding to the shells of the input polygons. Only ONE ring gets marked for each shell - if there are others which remain unmarked this indicates a disconnected interior.
Source: