<div class="gmail_quote">On Wed, Jun 24, 2009 at 1:27 PM, Christoph Eckert <span dir="ltr"><<a href="mailto:ce@christeck.de">ce@christeck.de</a>></span> wrote:<br><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>
> You may trigger a deadlock in this situation ... I've been waiting for<br>
> somebody to try this out for a long time :-)<br>
<br>
he he, bull's eye, eh ;-) ?<br>
<br>
Well, I wanted to try to create a kind of worldwide "base map" for Navit to<br>
get a clue what file size this would trigger. Right now, I'm only extracting<br>
ways. I will try to extract nodes (cities and the like) in a second run. I'm<br>
curious however if it will be possible to merge both files, especially if<br>
possible duplicates of nodes and ways occur.<br>
<br>
I'm not that confident that the desired basemap will be of a reasonable size;<br>
the resulting way's file already is 40GB, and the job is not completed yet.<br>
<br>
Anyway, you helped me a lot. Thanks, guys!<br>
<br>
<br>
Cheers,<br>
<br>
ce<br>
</blockquote></div><br>Yes, you can easily merge files. If there are duplicates, it will take the node/way/relation with the newest version by default (you can change that to choose the newest timestamp or always from one source). The files must be sorted for that to work. The command line would be something like:<br>
osmosis --read-xml file1.osm --sort --read-xml file2.osm --sort --merge --write-xml merged.osm<br><br>Karl<br>