How To Create Garmin Topo Maps - Part 9 - Compiling Data
Author: Dan Blomberg | Last updated December 4th, 2011 at 03:19pm
The final part of this lesson is two parts. The first, and required, step is converting the .mp files to Garmin compatible .img files. The second, optional, step is creating a NSIS setup file to allow people to easily install your new map.
Some software is required for creating .img files and the setup system.
- Creating The .img Files
Creating The Setup File
- NSIS - creates setup files (free)
Creating .img Files
First make sure you downloaded cgpsmapper.
- Copy cgpsmapper.exe and sendg.dll from its directory to your release_version_1.00 directory
Download GPSFileDepot's batch scripts to make processing autonomous
Note: this is not required but highly recommended for multiple .mp files
- Extract the files in the zip folder to your release_version_1.00 folder
- Open TranscodeQ.txt and put all your .mp filenames in there (for example MSTopo_A1.mp, MSTopo_A2.mp, etc.)
- Double click transcode.bat; this will run cgpsmapper on all the files listed there and then hit the next file.
This process will most likely take a few hours and will create .img files. You are now done with the .mp files.
Creating The Preview File
I use MapSetToolkit to easily create the preview files.In the lower left make sure you point the cgpsmapper blank to the location where cgpsmapper is installed.
- Open MapSetToolkit
- Click "Select IMG Files" in the upper left
- Point it to your release_version_1.00 folder
- Click "Select All"
- Click "Add-->"
- Set the Mapset Directory to the release_version_1.00 folder
- Enter your mapset name into the mapset name box (Mississippi Topo for example)
- Leave Product Code blank
- Enter your information into the copyright information box; it may not use this depending on the version of cgpsmapper you use.
We're going to fill in family ID with a 4 digit number. This number can be random but right now GPSFileDepot's maps use 326# and 327#; please don't use any 326# or 327#.
- Click Start
Creating Setup Files
We will use NSIS and a template file to easily create setup files that install your maps on someone's computer as well as make it easy to access in MapSource.
- Download the setup template file. (Updated 4 Dec 11)
- Extract the files to your release_version_1.00 folder
- Optional: Open license.txt and modify as needed/you see fit.
- Open the .nsi file in notepad
- Edit MAP_DESC_NAME
- Edit MAP_SHORT_NAME (this needs to match the map name from Mapset Toolkit)
- Edit MAP_URL
- Edit MAP_EMAIL
- Edit MAP_COPYRIGHT
- Edit MAP_VERSION
- Edit MAP_REL_DATE (map release date)
You will need to convert the decimal family id to hexadecimal using Windows' built in calculator. This decimal code is the family id from Mapset Toolkit.
- Open the calculator built in to Microsoft Windows (normally in the Accessories part of the Start menu)
- Click view>scientific
- Make sure that "Dec" is clicked (circle filled in) and then type in your family id.
- Now click "Hex"; it will return a number. If the number is only 3 digits don't forget to add the zero to the front; for example if the decimal number was 2351 the hexadecimal will display as 92F and in this case we need to make it 092F.
- Now take this code and "flip" it, if the hex code was ABCD then your MAP_ID is CDAB. In the example above the family id would be 2F09
- Change the DIRECTORY to match your release directory
- Change the EXE_FILE from map_install.exe to XX_topo_install.exe where XX is your state's two letter code.
Advanced options (do as required/optional):
- If cgpsmapper/MapSetToolkit created a .mdx file uncomment (remove the ; ) lines 117 and 130.
- If cgpsmapper/MapSetToolkit created .img.idx , .tbd, and _mdr.img then uncomment lines 116, 118, 122, 131, and 136
- This will allow the installer to work with searchable maps.
- If you want to have a custom icon for your setup file fill in line 22 and then uncomment lines 39 and 40
- If you want to use a custom left side graphic (as -Oz-'s installers do) then fill in line 23 and uncomment line 47
- Now save the file and close notepad.
- Open NSIS and compile the .nsi file.
You should now have a setup exe in your release_version_1.00 folder.
Creating Mac Files
This is an optional step but highly reccomended.
- Download Garmin MapConverter.
- Start MapConverter
- Click next if it says there are maps that can't be converted.
- Select the map you want to convert and uncheck all the others.
- Click Next.
- Put the file in your release_version_1.00 folder
- Click next and let it do the conversion.
You now have a file that can be opened and then installed on a Mac computer.
If you want to make it easier (and have a mac) we highly reccomend you create a setup file for Macs for Garmin compatible maps.
Now that you've made a map make sure you register here at GPSFileDepot and then go to the member's area and add your map so you can share it with the world.