[OSM-dev] Question running osmosis (node-key-value and way-key-value at the same time)

Karl Newman siliconfiend at gmail.com
Wed Jun 24 22:12:11 BST 2009


On Wed, Jun 24, 2009 at 1:27 PM, Christoph Eckert <ce at christeck.de> wrote:

> Hi,
>
> > You may trigger a deadlock in this situation ... I've been waiting for
> > somebody to try this out for a long time :-)
>
> he he, bull's eye, eh ;-) ?
>
> Well, I wanted to try to create a kind of worldwide "base map" for Navit to
> get a clue what file size this would trigger. Right now, I'm only
> extracting
> ways. I will try to extract nodes (cities and the like) in a second run.
> I'm
> curious however if it will be possible to merge both files, especially if
> possible duplicates of nodes and ways occur.
>
> I'm not that confident that the desired basemap will be of a reasonable
> size;
> the resulting way's file already is 40GB, and the job is not completed yet.
>
> Anyway, you helped me a lot. Thanks, guys!
>
>
> Cheers,
>
> ce
>

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:
osmosis --read-xml file1.osm --sort --read-xml file2.osm --sort --merge
--write-xml merged.osm

Karl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20090624/23ea5fc0/attachment.html>


More information about the dev mailing list