Class MaximalEdgeRing
- Namespace
- NetTopologySuite.Operation.Overlay
- Assembly
- NetTopologySuite.dll
A ring of edges 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, MinimalEdgeRings are required.
A MaximalEdgeRing can be converted to a list of MinimalEdgeRings using the
BuildMinimalRings()
method.
public class MaximalEdgeRing : EdgeRing
- Inheritance
-
MaximalEdgeRing
- Inherited Members
Constructors
MaximalEdgeRing(DirectedEdge, GeometryFactory)
public MaximalEdgeRing(DirectedEdge start, GeometryFactory geometryFactory)
Parameters
start
DirectedEdgegeometryFactory
GeometryFactory
Methods
BuildMinimalRings()
public IList<EdgeRing> BuildMinimalRings()
Returns
GetNext(DirectedEdge)
public override DirectedEdge GetNext(DirectedEdge de)
Parameters
de
DirectedEdge
Returns
LinkDirectedEdgesForMinimalEdgeRings()
For all nodes in this EdgeRing, link the DirectedEdges at the node to form minimalEdgeRings
public void LinkDirectedEdgesForMinimalEdgeRings()
SetEdgeRing(DirectedEdge, EdgeRing)
public override void SetEdgeRing(DirectedEdge de, EdgeRing er)
Parameters
de
DirectedEdgeer
EdgeRing