cferrero.net      

Mapping la vida loca

 

 Home

 Photos

 Videos

 Maps

 About

How I update my Gulf Coast Co-operation countries map

This is a step-by-step guide to the exact set of commands and actions I use to update my GCC maps (you can download a recent version here and also see some screenshots of it). I've put it together to show how I use the various files I've made available on my downloads page to generate a whole new map.

I generate two versions of any map: one for my GPS (which uses simpler roads) and one for Mapsource (which has more fancy styling on roads). I list both processes here and you can download the relevant files to see exactly what I'm using.

1. Creating the GPSr version

  1. Download the latest GCC map extract from Geofabrik.
  2. Relabel the file to GCC_today's date, e.g. GCC_20110308.pbf
  3. Run split_GCC.bat to split the data. For the GCC region, this results in a single tile as there isn't much data here yet. Total time to split: 21 seconds
  4. Run mkgmap_GCC_GPS.bat to generate the GPS map.
    • I make sure to use the java option -DLog.config=logging.properties so that I can spend some time later improving the OSM data.
    • This batch script runs mkgmap using my options_GCC_GPS.args options file and my CF_GPS style combined with a TYP file based off the CFMaster.TYP file.
  5. Run process_OSMlog to parse through the results of the config logging, splitting them into discrete text files that I can then go through and use to fix errors in the routing information in OSM. `
  6. Copy the gmapsupp.img file to the Garmin folder of the SD card I use in my GPSr.

2. Creating the Mapsource version

  1. Copy the split OSM tiles created during step 1.3 above to a new folder designed to contain the Mapsource tiles
  2. Run mkgmap_GCC_Mapsource.bat to create the Mapsource map. This step also requires:
  3. As the folder containing the Mapsource tiles hasn't changed, I don't need to re-install the map: Mapsource continues looking where it looked before, and isn't aware that the tiles have changed. I may need to hit CTRL+G to refresh the cache, but otherwise everything works as expected.

Conclusion

This may look like a lot of steps and files to worry about, but in reality once all the options files and TYP files are set up, you never need to touch them again, so it's just a matter of mechanically clicking each batch file in turn. You could even create a master batch file that calls each batch file in turn making the whole process a one-click event.
  Copyright 2005-2011 All Rights Reserved cferrero.net