[OSM-talk] Uploading multiple tracks

Dirk-Lüder Kreie osm-list at deelkar.net
Tue May 8 19:53:10 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Christoph Eckert schrieb:
> Hi,
> 
>> You could use trackmaker (trademark) which has a free version. You
>> open one file and then choose "merge file" under the file menu and
>> can add file after file sequentially and then save the result as a
>> GPX file.
> 
> thanks for the pointer. Unfortunately, I have no Windows box :( .

gpsbabel can merge multiple files, unfortunately it expects a "-f"
switch between each file so you can't do something like
 gpsbabel -i gpx -f *.gpx -o gpx -F merged.gpx
so instead you can do some bash magic:

gpsbabel -i gpx $(ls -1 *.gpx | while read GPX; do echo -n " -f $GPX ";
done) -o gpx -F merged.gpx

all in one line. Not tested, but should work.

- --

Dirk-Lüder "Deelkar" Kreie
Bremen - 53.0952°N 8.8652°E

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGQMcWFUbODdpRVDwRAnWMAJ930CAjcPqD99dA3Sx+rsUoq5g9wQCgkoVz
y3C22zF6OuQfscaNAv+1n/A=
=aNCJ
-----END PGP SIGNATURE-----




More information about the talk mailing list