ConnectedInteriorTester class
This class tests that the interior of an area {@link Geometry} ( {@link Polygon} or {@link 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
@version 1.7
Constructors
- ConnectedInteriorTester(GeometryGraph geomGraph)
Properties
- disconnectedRingcoord ↔ Coordinate?
-
getter/setter pair
- geometryFactory ↔ GeometryFactory
-
getter/setter pair
- geomGraph ↔ GeometryGraph
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
buildEdgeRings(
List dirEdges) → List - Form DirectedEdges in graph into Minimal EdgeRings. (Minimal Edgerings must be used, because only they are guaranteed to provide a correct isHole computation)
-
getCoordinate(
) → Coordinate? -
hasUnvisitedShellEdge(
List edgeRings) → bool - 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)
-
isInteriorsConnected(
) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setInteriorEdgesInResult(
PlanarGraph graph) → void -
toString(
) → String -
A string representation of this object.
inherited
-
visitInteriorRing(
LineString ring, PlanarGraph graph) → void -
visitLinkedDirectedEdges(
DirectedEdge? start) → void -
visitShellInteriors(
Geometry? g, PlanarGraph graph) → void - 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.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
findDifferentPoint(
List< Coordinate> coord, Coordinate pt) → Coordinate?