OSM Map On Garmin/Cycle map
From OpenStreetMap
You can put a cycle-focused map on your Garmin GPS, made from OSM data. This page explains how to build it - if you just want to download a pre-built one for the UK, go to OSM Map On Garmin/Download.
Contents |
Prerequisites
- Install the Perl modules IO::Uncompress::Bunzip2 from CPAN
- IO::Uncompress::Bunzip2 depends on Compress::Raw::Bzip2 and IO::Compress::Base; Debian/Ubuntu users can build packages with e.g.
dh-make-perl --build --cpan Compress::Raw::Bzip2
- IO::Uncompress::Bunzip2 depends on Compress::Raw::Bzip2 and IO::Compress::Base; Debian/Ubuntu users can build packages with e.g.
- Download mkgmap and ungzip it
- Download osmcut.*.jar from here, and put the .jar in the mkgmap directory
- Download preprocess.pl from svn, and put it in the mkgmap directory
- Download cycling-map-features.csv from svn, and put it in mkgmap/resources
- Download an .osm file from somewhere (e.g. one of these planet.osm extracts)
Running it
- perl preprocess.pl yourosmfile.osm (or yourosmfile.osm.bz2)
- It will create a gmapsupp.img file, which you should copy across to your GPS in the usual way (put it in the Garmin subdirectory)
Troubleshooting
- If you are getting an error message like "GC Warning: Out of Memory! Returning NIL!", you can edit preprocess.pl and increase the option "-Xmx512M" to e.g. "-Xmx1024M" in the java call. This assumes you have enough RAM for that.
- If you are getting a "Exception in thread "main" java.lang.NoClassDefFoundError: java.util.Scanner", then you are probably using gcj instead of Sun's Java (check with
java -version).
What it does
- Produces a map with the following features:
- NCN/RCN/LCN cycle routes are highlighted
- Other roads are toned down a little
- Refs are munged so that cycle route numbers are obvious
- Shows cycle parking and bike shops
- Filesize of about 32MB for the UK at present, 44MB for Germany (April 2008)
- Stops you getting lost on the National Cycle Network
What it doesn't
- Doesn't do cycle node networks, yet
- There are a few little peculiarities (if you 'mouseover' an unnamed minor road, it will say "County boundary", because that's the style it's using)
- Display umlauts - it somehow reduces "üöä" to "uoa".
Future plans
- Use a custom .TYP file (see http://ati.land.cz/gps/typdecomp/editor.cgi) instead of doing quite so much munging
Finding out why it doesn't work
- Ask Richard
Categories: GPS unit | Outputs | Garmin | Bicycles

