On Wed, Apr 9, 2008 at 12:41 AM, Andy Allan <<a href="mailto:gravitystorm@gmail.com">gravitystorm@gmail.com</a>> wrote:<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;">
Jon,<br>
<br>
Given that #relations < #ways < #nodes, and you (generally) need to<br>
know about all the relations before you process the ways, and you need<br>
to know which ways you are interested in before deciding which nodes<br>
to keep - would it not make sense to dump the relations into the file<br>
first, followed by the ways, then the nodes last?<br>
<br>
Albeit I'm only thinking of osm2pgsql, maybe there's other things that<br>
wouldn't work this way round.<br>
<br>
Cheers,<br>
Andy<br>
</blockquote></div><br>Since the nodes are the only entities that contain spatial information, sometimes they're needed first, especially for extracting a bounding box. I'm thinking of Osmosis, in particular, but there are probably other applications that assume the nodes->ways->relations order. It might be handy to have each of the entity types in their own file so clients could deal with them however they like, but that could be accomplished pretty quickly by postprocessing the planet file.<br>
<br>Karl<br>