On 9/16/07, <b class="gmail_sendername">Frederik Ramm</b> <<a href="mailto:frederik@remote.org">frederik@remote.org</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>>    In latest planet (planet-070912.osm), I get a bunch of ways with segments<br>>    that do not exist. For example, segments with ids 44408190 or 44408195 are<br>>    in ways 6064842 and 6064843, but the segments do not exist in the planet.
<br>>    If I make the API calls to get the segments, they both exist.<br>><br>>    So, is this a planet.osm artifact? Is it a race condition while generating<br>>    the planet?<br><br>Yes, exactly. Since the script dumps nodes, then segments, then ways,
<br>any nodes segments created while segments are being dumped will be<br>missing, as will all segments created while ways are being dumped.</blockquote><div><br><br>There would be greater referential integrity if the ways were dumped first, then segments and then nodes.
<br><br>Since some consumers of planet.osm might expect nodes, then segments then ways, the dump could easily create three separate files which are then stitched together in the expected order.<br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This is esepcially ugly if you don't think about it, import the planet<br>into your own MySQL database, and start creating new nodes... they<br>will be assigned IDs that look fresh to your MySQL but there will<br>actually be segments referring to these IDs already, creating a nice
<br>mess.<br><br>Bye<br>Frederik<br><br>--<br>Frederik Ramm  ##  eMail <a href="mailto:frederik@remote.org">frederik@remote.org</a>  ##  N49°00.09' E008°23.33'<br><br><br>_______________________________________________
<br>dev mailing list<br><a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br><a href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev">http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
</a><br></blockquote></div><br>