[osmosis-dev] Merge multiple files

Jaromír Mikeš mira.mikes at seznam.cz
Sun Oct 13 18:47:28 UTC 2013




Od: Frederik Ramm <frederik at remote.org>


"Here's a wrapper script I use to combine multiple osc files (called like
"./myscript.sh *.osc > foo.osc"):

#!/bin/bash

CMDLINE=`
echo "--read-xml-change $1"
echo "--sort-change"
shift
while [[ $# > 0 ]]
do
echo "--read-xml-change $1"
echo "--sort-change"
echo "--merge-change"
echo "--sort-change"
shift
done
echo "--simc"
echo "--write-xml-change -"
`

/srv/osmosis/bin/osmosis $CMDLINE"



Hi Frederic,




Thank you for sharing your script ... unfortunately this script is for 
merging osc files, but I am merging osm files :(


Maybe I would like to merge pbf files also in future.




regards




mira
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osmosis-dev/attachments/20131013/7412b70d/attachment.html>


More information about the osmosis-dev mailing list