Search in sources :

Example 1 with EdgeGraph

use of com.revolsys.geometry.edgegraph.EdgeGraph in project com.revolsys.open by revolsys.

the class EdgeGraphTest method testNode.

public void testNode() throws Exception {
    final EdgeGraph graph = build("MULTILINESTRING((0 0, 1 0), (0 0, 0 1), (0 0, -1 0))");
    checkEdgeRing(graph, new PointDoubleXY(0, 0), new Point[] { new PointDoubleXY(1, 0), new PointDoubleXY(0, 1), new PointDoubleXY(-1, 0) });
    checkEdge(graph, new PointDoubleXY(0, 0), new PointDoubleXY(1, 0));
}
Also used : EdgeGraph(com.revolsys.geometry.edgegraph.EdgeGraph) PointDoubleXY(com.revolsys.geometry.model.impl.PointDoubleXY)

Aggregations

EdgeGraph (com.revolsys.geometry.edgegraph.EdgeGraph)1 PointDoubleXY (com.revolsys.geometry.model.impl.PointDoubleXY)1