A newer improved and user-friendly tool is available: OSM Combiner
E. Install the mapset
OSM_combi is a Windows batch script to combine mapsets to view them simultaneously in Mapsource.
It is based on gmaptool (gmt.exe) and mkgmap (mkgmap.jar). Download & unpack OSM_Combi.zip into a directory of your choice.
The zip file contains the following files & folders:
OSM_combi.bat is the Windows batch script
OSM_combi.ini is the configuration file for the combined mapset (family name, family ID, typ file, create a gmapsupp version). Edit this ini file to your choice.
To run mkgmap, Java Runtime Environment is necessary. Check this on the Java website.
Edit the following parameters in the osm_combi.bat file if there isn't enough memory available to run Java (creating a gmapsupp image for the new mapset at least 1 Gb memory is needed):
Put in this folder the zipped archives, gmapsupp.img's or individual img tiles that needs to be combined. The zip files are automatically extracted (& renamed if needed), split in individual img's and moved to the 'Map' folder
In this folder mkgmap will create a new mapset from the img tiles that are stored here.
Individual image tiles (e.g. from osm_routable_tiles.zip or an already installed mapset) can be copied to this map as well, but make sure no mapset index img files are included. Index img's are recognised by their combination with the filename.tdb:
After the batch script is finished, move all files from the Map folder to a destination folder of your choice and run install.exe. For an alternative installation as gmap you can use Javawa Mapconverter.
In the Examples folder you can find examples of batch & ini files:
Typ files folder
Examples of contour line sets are Computerteddy's Europe set or osm.thkukuk.de
Combinations of contour lines work better in Basecamp. In Mapsource contour layers can be invisible because it's displayed underneath another mapset.
mkgmap.jar Mkgmap programm to compile OSM data into Garmin format
gmt.exe gmaptool to split gmapsupp.img into individual img tiles
makensis.exe / Stubs NSIS compiler to make an executable installer/uninstaller
installer_template.nsi Template for the nsis installer
7z.exe File archiver from http://www.7-zip.org/
Combining OSM World routable map (some country set) with OFM_hiking layer.
A. Download from http://garmin.openstreetmap.nl a country set, select one of these maps below, and save it in the osm_combi\input folder
C. Adapt the OSM_Combine.ini file
Change the line input-file=typ-files\Mapnik.txt
Run osm_wrld.bat directly from the Examples folder. The settings are already adjusted (please note that the path is different (input-file=..\typ-files\mapnik.txt) because the script is called from a subdirectory).
D. Run OSM_combine.bat:
If everything is fine, press any key to continue, otherwise press Crtl-C and
adjust the settings in osm_combine.ini
Move the OSM_Combi\Map to a destination folder of your choice and run install.exe
Map making procedure >