This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Way_nodes and current_way_nodes

0

What is the difference between way nodes and current_way nodes table?

asked 14 Mar '18, 09:39

_partha's gravatar image

_partha
26557
accept rate: 0%

1

Where do you find those?

(14 Mar '18, 09:44) Hjart

Far from all nodes in the database are visible and the current* could could be those that are (currently) visible

(14 Mar '18, 10:43) Hjart

One Answer:

2

current_way_nodes describes the links between a currently visible way and its nodes. way_nodes does the same, but for all ways, including older or deleted versions. If you have freshly populated a database with osmosis, both tables will have the same content but if you start editing on your database using the rails port, then the contents will diverge.

answered 14 Mar '18, 16:05

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Source code available on GitHub .