public abstract class EdgeRing extends Object
Modifier and Type | Field and Description |
---|---|
protected GeometryFactory |
geometryFactory |
protected DirectedEdge |
startDe |
Constructor and Description |
---|
EdgeRing(DirectedEdge start,
GeometryFactory geometryFactory) |
Modifier and Type | Method and Description |
---|---|
void |
addHole(EdgeRing ring) |
protected void |
addPoints(Edge edge,
boolean isForward,
boolean isFirstEdge) |
protected void |
computePoints(DirectedEdge start)
Collect all the points from the DirectedEdges of this ring into a contiguous list
|
void |
computeRing()
Compute a LinearRing from the point list previously collected.
|
boolean |
containsPoint(Coordinate p)
This method will cause the ring to be computed.
|
Coordinate |
getCoordinate(int i) |
List |
getEdges()
Returns the list of DirectedEdges that make up this EdgeRing
|
Label |
getLabel() |
LinearRing |
getLinearRing() |
int |
getMaxNodeDegree() |
abstract DirectedEdge |
getNext(DirectedEdge de) |
EdgeRing |
getShell() |
boolean |
isHole() |
boolean |
isIsolated() |
boolean |
isShell() |
protected void |
mergeLabel(Label deLabel) |
protected void |
mergeLabel(Label deLabel,
int geomIndex)
Merge the RHS label from a DirectedEdge into the label for this EdgeRing.
|
abstract void |
setEdgeRing(DirectedEdge de,
EdgeRing er) |
void |
setInResult() |
void |
setShell(EdgeRing shell) |
Polygon |
toPolygon(GeometryFactory geometryFactory) |
protected DirectedEdge startDe
protected GeometryFactory geometryFactory
public EdgeRing(DirectedEdge start, GeometryFactory geometryFactory)
public boolean isIsolated()
public boolean isHole()
public Coordinate getCoordinate(int i)
public LinearRing getLinearRing()
public Label getLabel()
public boolean isShell()
public EdgeRing getShell()
public void setShell(EdgeRing shell)
public void addHole(EdgeRing ring)
public Polygon toPolygon(GeometryFactory geometryFactory)
public void computeRing()
public abstract DirectedEdge getNext(DirectedEdge de)
public abstract void setEdgeRing(DirectedEdge de, EdgeRing er)
public List getEdges()
protected void computePoints(DirectedEdge start)
public int getMaxNodeDegree()
public void setInResult()
protected void mergeLabel(Label deLabel)
protected void mergeLabel(Label deLabel, int geomIndex)
protected void addPoints(Edge edge, boolean isForward, boolean isFirstEdge)
public boolean containsPoint(Coordinate p)
Copyright © 2016. All rights reserved.