public class ConnectedInteriorTester
extends java.lang.Object
Geometry
( Polygon
or MultiPolygon
)
is connected.
This can happen if:
Modifier and Type | Field and Description |
---|---|
private Coordinate |
disconnectedRingcoord |
private GeometryFactory |
geometryFactory |
private GeometryGraph |
geomGraph |
Constructor and Description |
---|
ConnectedInteriorTester(GeometryGraph geomGraph) |
Modifier and Type | Method and Description |
---|---|
private java.util.List |
buildEdgeRings(java.util.Collection dirEdges)
Form DirectedEdges in graph into Minimal EdgeRings.
|
static Coordinate |
findDifferentPoint(Coordinate[] coord,
Coordinate pt) |
Coordinate |
getCoordinate() |
private boolean |
hasUnvisitedShellEdge(java.util.List edgeRings)
Check if any shell ring has an unvisited edge.
|
boolean |
isInteriorsConnected() |
private void |
setInteriorEdgesInResult(PlanarGraph graph) |
private void |
visitInteriorRing(LineString ring,
PlanarGraph graph) |
protected void |
visitLinkedDirectedEdges(DirectedEdge start) |
private void |
visitShellInteriors(Geometry g,
PlanarGraph graph)
Mark all the edges for the edgeRings corresponding to the shells
of the input polygons.
|
private GeometryFactory geometryFactory
private GeometryGraph geomGraph
private Coordinate disconnectedRingcoord
public ConnectedInteriorTester(GeometryGraph geomGraph)
public static Coordinate findDifferentPoint(Coordinate[] coord, Coordinate pt)
public Coordinate getCoordinate()
public boolean isInteriorsConnected()
private void setInteriorEdgesInResult(PlanarGraph graph)
private java.util.List buildEdgeRings(java.util.Collection dirEdges)
private void visitShellInteriors(Geometry g, PlanarGraph graph)
private void visitInteriorRing(LineString ring, PlanarGraph graph)
protected void visitLinkedDirectedEdges(DirectedEdge start)
private boolean hasUnvisitedShellEdge(java.util.List edgeRings)