Language

Login to Openmtbmap

email feed

Send Maps to GPS with Mkgmap (Cross-Platform)

Use Mkgmap to send maps to your GPS instead of sendmap

I know that many of you dislike closed source programs, I do that too (with the exception that for now I still dualboot to windows because of Garmin Mapsource and some other programs, otherwise I am on the good Ubuntu side of the world)!

However you can also use mkgmap for sending the maps.

1. Get and install mkgmap . Note that Java is required (Sun Java JDK is recommended). I would advise to go with the latest release or compile from source with ANT.

2. a) Now combine all .img and  One  .TYP (decide on only one of them – .TYP has to be in UPPERCASE.)  with the following command from the folder where the maps are extracted to:

(Of course you could also define the .img files by folder, and you probably have to add the path wo mkgmap) This will create a gmapsupp.img file, that you can upload to your GPS in USB mode (place it into /garmin folder on GPS internal memory or memory card)

Note that all 6*.img have to be from the same openmtbmap country file – otherwise only one "country" will show in proper colours. You can instead of deleting all but one typfile replace *.TYP with e.g. clas*.TYP or the full name like clasde.TYP.


-–family-id should be the same number as the first 4 digits of the maps (if you use a different number, you have to adjust the FID inside the .TYP-file). Note every map on your gps needs a different family-id (else they won't be shown).

-–family-name can be set to any value (only use letters and numbers, no Umlauts or symbols) and will be shown as mapname on the GPS maplist.

2 b) if you want to have contourlines (altitude lines) included too, just change the above command from "6*.img" to "6*.img 7*.img" and put the *.img from the contourline download into the same folder before running the above command.

 

It is now also possible to include several maps with different .TYP files at the same time with mkgmap – the command will get more complex however (read mkgmap mailinglist/docs on how to do this as I have never tried it)!

Alternatively run 2. for each mapset (e.g. "openmtbmap austria", or "Garmin City Navigator" on its own, and then combine the maps with gmaptool

 

Alternatives for Linux / Mac OSX users

0. You can use gmt (gmaptool) instead.

1. You could also try to use Qlandkarte GT to send the maps to your GPS. Note you may have to compile drivers for your GPS by hand.

2. Alternatively use Mapsource from inside WINE, To send maps put a symbolic link for the driver:
ln -s /dev/ttyUSB0 ~/.wine/dosdevices/com1
you will need admin rights.

2 comments to Send Maps to GPS with Mkgmap (Cross-Platform)

Leave a Reply