Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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 Regards,

share|improve this question
add comment

1 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.

share|improve this answer
    
Thank you, I tried and it's a good app, unfortunately the output is in one single file, I'm hoping each gdb get converted to each gpx. –  Zery Jan 4 '12 at 15:40
    
@Zery - Sounds like you need to loop through your files one by one and call gpsbabel on each one as you go. –  Chad Cooper Jan 9 '12 at 16:19
    
@Chad - thank you, why don't I think of that, in fact I can even do it from inside my MapInfo using MapBasic and then just look for another source how to convert gpx to mapinfo tab programatically. Thank you. –  Zery Jan 9 '12 at 23:43
1  
I added an example batch file to loop through files in a directory –  matt wilkie Feb 22 '12 at 17:51
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.