Changes between Version 4 and Version 5 of UsersWikiExamplesNetworkTopology
- Timestamp:
- 06/14/09 20:41:37 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UsersWikiExamplesNetworkTopology
v4 v5 114 114 115 115 116 {{{ 117 -- Sample data from the new roads table 118 SELECT road_id, from_node, to_node FROM roads WHERE road_id = 834; 119 road_id | from_node | to_node 120 ---------+-----------+--------- 121 834 | 1751 | 1759 122 (1 row) 123 }}} 124 125 116 126 '''Notes''': Alternatively, we could have first created a distinct set of nodes, assigned a unique id to the nodes, and spatially transferred a node_id attribute to every road by intersecting the roads and nodes. However, such spatial operations are very expensive to perform. Also, in this case, it's not needed since we already have a relationship between a line and a node (the node is just the start or end point of the line it originated from). 117 127