org.geotools.geometry.iso.operation.overlay
Class MaximalEdgeRing
java.lang.Object
org.geotools.geometry.iso.topograph2D.EdgeRing
org.geotools.geometry.iso.operation.overlay.MaximalEdgeRing
public class MaximalEdgeRing
- extends EdgeRing
A ring of Edge
s which may contain nodes of degree > 2. A
MaximalEdgeRing may represent two different spatial entities:
- a single polygon possibly containing inversions (if the ring is oriented
CW)
- a single hole possibly containing exversions (if the ring is oriented
CCW)
If the MaximalEdgeRing represents a polygon, the interior of the polygon is
strongly connected.
These are the form of rings used to define polygons under some spatial data
models. However, under the OGC SFS model, MinimalEdgeRing
are
required. A MaximalEdgeRing can be converted to a list of MinimalEdgeRings
using the buildMinimalRings()
method.
Methods inherited from class org.geotools.geometry.iso.topograph2D.EdgeRing |
addHole, addPoints, computePoints, containsPoint, getCoordinate, getEdges, getLabel, getMaxNodeDegree, getRing, getShell, isHole, isIsolated, isShell, mergeLabel, mergeLabel, setInResult, setShell, toPolygon |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MaximalEdgeRing
public MaximalEdgeRing(DirectedEdge start,
org.opengis.referencing.crs.CoordinateReferenceSystem crs,
CGAlgorithms cga)
getNext
public DirectedEdge getNext(DirectedEdge de)
- Specified by:
getNext
in class EdgeRing
setEdgeRing
public void setEdgeRing(DirectedEdge de,
EdgeRing er)
- Specified by:
setEdgeRing
in class EdgeRing
linkDirectedEdgesForMinimalEdgeRings
public void linkDirectedEdgesForMinimalEdgeRings()
- For all nodes in this EdgeRing, link the DirectedEdges at the node to
form minimalEdgeRings
buildMinimalRings
public java.util.List buildMinimalRings()
Copyright © 1996-2010 Geotools. All Rights Reserved.