com.vividsolutions.jts.operation.overlay

Class MaximalEdgeRing


public class MaximalEdgeRing
extends EdgeRing

A ring of edges which may contain nodes of degree > 2. A MaximalEdgeRing may represent two different spatial entities: 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, MinimalEdgeRings are required. A MaximalEdgeRing can be converted to a list of MinimalEdgeRings using the buildMinimalRings() method.

Version:
1.7
See Also:
MinimalEdgeRing

Field Summary

Fields inherited from class com.vividsolutions.jts.geomgraph.EdgeRing

cga, geometryFactory, startDe

Constructor Summary

MaximalEdgeRing(DirectedEdge start, GeometryFactory geometryFactory, CGAlgorithms cga)

Method Summary

DirectedEdge
getNext(DirectedEdge de)
void
setEdgeRing(DirectedEdge de, EdgeRing er)

Methods inherited from class com.vividsolutions.jts.geomgraph.EdgeRing

addHole, addPoints, computePoints, computeRing, containsPoint, getCoordinate, getEdges, getLabel, getLinearRing, getMaxNodeDegree, getNext, getShell, isHole, isIsolated, isShell, mergeLabel, mergeLabel, setEdgeRing, setInResult, setShell, toPolygon

Constructor Details

MaximalEdgeRing

public MaximalEdgeRing(DirectedEdge start,
                       GeometryFactory geometryFactory,
                       CGAlgorithms cga)

Method Details

getNext

public DirectedEdge getNext(DirectedEdge de)
Overrides:
getNext in interface EdgeRing

setEdgeRing

public void setEdgeRing(DirectedEdge de,
                        EdgeRing er)
Overrides:
setEdgeRing in interface EdgeRing