Package org.locationtech.jts.geomgraph
Class EdgeRing
- java.lang.Object
-
- org.locationtech.jts.geomgraph.EdgeRing
-
- Direct Known Subclasses:
MaximalEdgeRing,MinimalEdgeRing
public abstract class EdgeRing extends java.lang.Object- Version:
- 1.7
-
-
Constructor Summary
Constructors Constructor Description EdgeRing(DirectedEdge start, GeometryFactory geometryFactory)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddHole(EdgeRing ring)voidcomputeRing()Compute a LinearRing from the point list previously collected.booleancontainsPoint(Coordinate p)This method will cause the ring to be computed.CoordinategetCoordinate(int i)java.util.ListgetEdges()Returns the list of DirectedEdges that make up this EdgeRingLabelgetLabel()LinearRinggetLinearRing()intgetMaxNodeDegree()abstract DirectedEdgegetNext(DirectedEdge de)EdgeRinggetShell()booleanisHole()booleanisIsolated()booleanisShell()abstract voidsetEdgeRing(DirectedEdge de, EdgeRing er)voidsetInResult()voidsetShell(EdgeRing shell)PolygontoPolygon(GeometryFactory geometryFactory)
-
-
-
Constructor Detail
-
EdgeRing
public EdgeRing(DirectedEdge start, GeometryFactory geometryFactory)
-
-
Method Detail
-
isIsolated
public boolean isIsolated()
-
isHole
public boolean isHole()
-
getCoordinate
public Coordinate getCoordinate(int i)
-
getLinearRing
public LinearRing getLinearRing()
-
getLabel
public Label getLabel()
-
isShell
public boolean isShell()
-
getShell
public EdgeRing getShell()
-
setShell
public void setShell(EdgeRing shell)
-
addHole
public void addHole(EdgeRing ring)
-
toPolygon
public Polygon toPolygon(GeometryFactory geometryFactory)
-
computeRing
public void 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.
-
getNext
public abstract DirectedEdge getNext(DirectedEdge de)
-
setEdgeRing
public abstract void setEdgeRing(DirectedEdge de, EdgeRing er)
-
getEdges
public java.util.List getEdges()
Returns the list of DirectedEdges that make up this EdgeRing- Returns:
- List of DirectedEdges
-
getMaxNodeDegree
public int getMaxNodeDegree()
-
setInResult
public void setInResult()
-
containsPoint
public boolean containsPoint(Coordinate p)
This method will cause the ring to be computed. It will also check any holes, if they have been assigned.- Parameters:
p- point- Returns:
- true of ring contains point
-
-