|
JTS Topology Suite version 1.13 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vividsolutions.jts.operation.relate.RelateNodeGraph
public class RelateNodeGraph
Implements the simple graph of Nodes and EdgeEnd which is all that is required to determine topological relationships between Geometries. Also supports building a topological graph of a single Geometry, to allow verification of valid topology.
It is not necessary to create a fully linked PlanarGraph to determine relationships, since it is sufficient to know how the Geometries interact locally around the nodes. In fact, this is not even feasible, since it is not possible to compute exact intersection points, and hence the topology around those nodes cannot be computed robustly. The only Nodes that are created are for improper intersections; that is, nodes which occur at existing vertices of the Geometries. Proper intersections (e.g. ones which occur between the interior of line segments) have their topology determined implicitly, without creating a Node object to represent them.
Constructor Summary | |
---|---|
RelateNodeGraph()
|
Method Summary | |
---|---|
void |
build(GeometryGraph geomGraph)
|
void |
computeIntersectionNodes(GeometryGraph geomGraph,
int argIndex)
Insert nodes for all intersections on the edges of a Geometry. |
void |
copyNodesAndLabels(GeometryGraph geomGraph,
int argIndex)
Copy all nodes from an arg geometry into this graph. |
java.util.Iterator |
getNodeIterator()
|
void |
insertEdgeEnds(java.util.List ee)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RelateNodeGraph()
Method Detail |
---|
public java.util.Iterator getNodeIterator()
public void build(GeometryGraph geomGraph)
public void computeIntersectionNodes(GeometryGraph geomGraph, int argIndex)
Precondition: edge intersections have been computed.
public void copyNodesAndLabels(GeometryGraph geomGraph, int argIndex)
public void insertEdgeEnds(java.util.List ee)
|
JTS Topology Suite version 1.13 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |