2009/1/14 Nop <span dir="ltr"><<a href="mailto:ekkehart@gmx.de">ekkehart@gmx.de</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hello!<br>
<br>
<br>
Are the ids of osm objects unique?<br>
<br>
A) globally unique<br>
<br>
B) unique only within the type of object, so the same id may occur with<br>
a way, a node and a relation.<br>
<br>
C) unique only within the type of object, but with non-intersecting<br>
numbering schemes<br>
<br>
<br>
According to the wiki it is B) [1]<br>
<br>
In my data processing I have so far assumed A) and never encountered a<br>
problem.<br>
<br>
<br>
What are the facts?<br>
</blockquote><div><br>B is the case... <br><br>e.g.<br><a href="http://www.openstreetmap.org/browse/way/10000000">http://www.openstreetmap.org/browse/way/10000000</a><br><a href="http://www.openstreetmap.org/browse/node/10000000">http://www.openstreetmap.org/browse/node/10000000</a><br>
<br>You may not have encountered a problem with assuming A in a limited dataset as the 'current' value for ways is significantly smaller than for nodes and the current value for relations is significantly smaller than for ways due to there being a lot more ways than relations and a lot more nodes than ways... <br>
>From <a href="http://www.openstreetmap.org/stats/data_stats.html">http://www.openstreetmap.org/stats/data_stats.html</a>:<br><table><tbody><tr><td>Number of nodes</td><td>296115165</td></tr>
<tr><td>Number of ways</td><td>24186209</td></tr>
<tr><td>Number of relations</td><td>53679</td></tr></tbody></table><br></div></div>d<br>