Shell# Convert to Garmin file with styles attached, set the environment, e.g.,:alias mkgmap="/opt/jre1.7.0/bin/java -jar $HOME/Downloads/OSM/mkgmap-r3294/mkgmap.jar"alias osmosis="/home/wrk/Downloads/OSM/osmosis/bin/osmosis"git clone OSM/# Pre-check the area size, should be less than 1.0(?)ruby -e "p (($top-$bottom)*($left-$right)).abs"# Reduce the map size (map.osm should be smaller than an approx. 800 Mb)osmosis --read-pbf file=france-latest.osm.pbf \ --bounding-box top=$top left=$left bottom=$bottom right=$right --write-xml "map.osm"# Check the map sizels -lrSh *.osmmkgmap --gmapsupp --style-file=hiking_styles --overview-mapname=ofm_bnl --family-id=10010 --product-id=1 --family-name=OpenFietsMap_Benelux --index --draw-priority=28 map.osm 10010.TYPls -lh gmapsupp.img
gmapsupp.img Serial Key
Now, what we want to achieve here, is to create a map that we can puton our Garmin (the Garmin 60cx model is still the best one,mostly because it is simple, has colour and runs 15 hours on standardAA batteries, and comes below EUR 200 now, get it with an extra one ortwo 2Gb micro SD's - latest is that I replaced the 60cx with theDakota 20). You don'tneed to worry about the default base map, as we won't use it. Aftersome magic you can create a gmapsupp.img file which you canjust copy to your Garmin.
If you want the Netherlands and Belgium you can justdownload his gmapsupp.zip image file(through the download tab on his openfietsmap site). And copy theunzipped edition to your Garmin. Basically youdownload the 500 Mb gmapsupp.img file on to your computer.
Hook your Garmin up with a USB cable to your computer, on the 60cx youlift a rubber flap. Switch the device on, go to the Main Menu,hit Setup and Interface. Select USB Mass Storageand your Garmin should show up as a disk drive on your computer (onWindows, also on OSX and Linux). Copythe gmapsupp.img file to the Garmin folder on that drive(note it is case sensitive). Disablethe device on the computer, and you can restart the Garmin. Thememory on the device should be large enough to hold the file. If it istoo small switch the microSD to something larger - it sits behind thebatteries (if the microSD is larger than 2Gb you need to format it onyour computer to 2Gb).
The alternative route is to create a gmapsupp.img map throughthe OSM api. This, however, often fails because servers easily getoverloaded. As above, first you want to get the border co-ordinates of yourmap. Use the Open Street Map 'Export'tab and zoom and select the map. Don't make it too large, start with asmall one. Once you have a nice view of what you want you can get theco-ordinates by jotting down the values on the left in the four boxes(e.g. Brecon Beacons national park has left=6.2581, bottom=53.3454,right=6.3141, top=53.3748).
Shell mount /dev/sdc1 /mnt/garmin/ cp gmapsupp.img /mnt/garmin/Garmin/ umount /mnt/garmin/ mount /dev/sdc1 /mnt/garmin/ pfff -k 1 /mnt/garmin/Garmin/gmapsupp.img gmapsupp.img 1101000000200001000000000000:A8CE4C5ECE56BCC260B00EFDC0B0DC6B /mnt/garmin/Garmin/gmapsupp.img 1101000000200001000000000000:A8CE4C5ECE56BCC260B00EFDC0B0DC6B gmapsupp.img umount /mnt/garmin/
We mentioned earlier that Garmin GPS navigator supports several mapset files. That should be enough for normal users.Saving different map into different mapset file also makes it easy to replace the map to newer version in the future, as well as convenient to remove a single map from the GPS storage.However, if you have a lot of map that you want to load into your GPS, or you want to store all the maps into SD card which supports only a single gmapsupp.img in it, you might need to combine (join) the maps into one mapset file by using specific software tool. GMapTool is one of the powerful tool which allow you to join and/or split maps in mapset file.You can visit this webpage to download GMapTool. It supports multiple platform:Windows - GUI and command line
Linux - command line
Mac OS X - command line
By using the GUI interface of GMapTool, it is pretty simple to combine the mapsets.Firstly, store all the mapset files you wish to combine in different filename in your PC. It is recommended to store them in the same folder/directory.Under the Files section of GMapTool, select the maps you want to combine by clicking on Add Files (to select one file at one time) or Add Directories (to select all *.img files in the directory). Note that you can always remove any file in the listing by selecting it and press the Delete button of your keyboard.When you are done with the mapset selection, continue to the Join section.Specify the Output File, and key-in the Mapset name of your file to be created. This mapset name will be displayed under each of the map name when you list your maps in Map Info function of your Garmin GPS.Click the Join all button, and the combined mapset will be created. You can then copy the new mapset file to your Garmin's internal storage or SD card.Note that if any of the maps in your mapset file is locked by vendor, you still need the 25 bytes unlock key stored in a *.unl file in the same folder and with the same name as the mapset file where the locked map is stored in. To unlock 2 maps inside the mapset file, put both the keys inside the *.unl file one after another, without space (the file size will be 50 bytes then).To get rid of the hassle, you might want to use another tool called Garmin Unlocker to permanently unlock the maps before combining them with GMapTool.You might probably be interested to also read about:Using GMapTool with cGPSmapper to convert finalized gmapsupp.img back to MapSource maps
Fixed GMapTool problem regarding "Multiple products in img, creating TDB aborted"
For Mac OSx, gmapsupp.img downloads this nearly doesn't matter - but I could not change the map creation procedure to take out the .exe installers for windows so I had decided to wait hoping for a certificate being issued any day...
Select your location and select gmapsupp.img format (this is the format for uploading directly to Garmin device. You can put this file into a Garmin device and have it giving you on-the-fly directions on streets and trails!)
On Linux, make sure (lsmodgrep garmin) that garmin_gps module is not loaded (usually it is blacklisted, so it should be OK). The module makes a serial device from garmin USB, which is unnecessary and reportedly could get in the way of normal use. 2ff7e9595c
Comments