May 2017
Beginner to intermediate
328 pages
7h 17m
English
The next function, GetEdgeByPoint, is designed to find edges. Its use is identical, and also throws an exception when there is more than one edge within tolerance. When no edge is found within tolerance, 0 is returned:
SELECT topology.GetEdgeByPoint('my_topology','SRID=4326;POINT(14.99327 50.92510)',0.015); getedgebypoint ---------------- 1626 SELECT topology.GetEdgeByPoint('my_topology','SRID=4326;POINT(14.82061 50.87269)',0.02); ERROR: Two or more edges found
Another way to find edges in a topology is retrieving them by node. This time, more than one edge ID can be returned. Let's get back to our tripoint and use the topology.GetNodeEdges function:
SELECT topology.GetNodeEdges('my_topology', 1598); getnodeedges -------------- ...Read now
Unlock full access