[GIS] Batch converting Garmin GDB to GPX

convertgarmingpsgpx

I need to convert a lot of garmin GDB files to GPX in order to convert it to another vector format. Is there any tools available can do a batch convert from garmin GDB files to GPX? Using MapSource allow only one file at a time.

Best Answer

You may use GPSBabel.

garmin GDB format is supported (see this page). Something like that should work:

gpsbabel -i gdb -f file.gdb -o gpx

A short batch file to loop through and convert all files in a directory:

for %%f in (x:\garmin_data\*.gdb) do (
   gpsbabel -i gdb -f "%%f" -o gpx -F "x:\gpx_data\%%~nf.gpx"
   )

The first -f is the input file and the second is the output. See here about the %%~ syntax.

Related Question