Class: MaximalEdgeRing

jsts.operation.overlay.MaximalEdgeRing

new MaximalEdgeRing()

A ring of DirectedEdges 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.

Source:

Extends

Methods

computePoints()

Collect all the points from the DirectedEdges of this ring into a contiguous list
Inherited From:
Source:

computeRing()

Compute a LinearRing from the point list previously collected. Test if the ring is a hole (i.e. if it is CCW) and set the hole flag accordingly.
Inherited From:
Source:

containsPoint()

This method will cause the ring to be computed. It will also check any holes, if they have been assigned.
Inherited From:
Source:

getEdges()

Returns the list of DirectedEdges that make up this EdgeRing
Inherited From:
Source:

linkDirectedEdgesForMinimalEdgeRings()

For all nodes in this EdgeRing, link the DirectedEdges at the node to form minimalEdgeRings
Source:

mergeLabel2()

Merge the RHS label from a DirectedEdge into the label for this EdgeRing. The DirectedEdge label may be null. This is acceptable - it results from a node which is NOT an intersection node between the Geometries (e.g. the end node of a LinearRing). In this case the DirectedEdge label does not contribute any information to the overall labelling, and is simply skipped.
Inherited From:
Source: