Tag Archives: MTB

generating maps for Garmin Etrex Vista HCx from openstreetmap osm files

I needed a map of Ireland.

You need to have java installed.
Here’s how I made it:

Download Splitter(here)
Download mkgmap (here)
Download the open street map from geofabrik(here)
Update: I recommend to download *.osm.pbf files.
Install all java stuff in a directory called, for example, in a linux box, ~/gps/
In the same directory, put all the other files you will download following this post.

java -Xmx1500M -jar splitter-rxxx/splitter.jar your_map.osm --output=xml

then edit template.args
add something like:


then run:

java -Xmx1500M -jar mkgmap-rxxxx/mkgmap.jar -c template.args

the 1500M is the amount of memory.
Try to allow as much memory as you can.
If you see:

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at it.unimi.dsi.fastutil.longs.LongArrays.ensureCapacity(LongArrays.java:107)
at it.unimi.dsi.fastutil.longs.LongArrayList.ensureCapacity(LongArrayList.java:202)
at it.unimi.dsi.fastutil.longs.LongArrayList.size(LongArrayList.java:271)
at uk.me.parabola.splitter.SparseInt2ShortMapInline.resizeTo(SparseInt2ShortMapInline.java:97)
you need more memory

A file named osmmap.img will be generated.
Rename it as gmapsupp.img, then copy it to the “Garmin” directoy in you GPS’ memory card.

bike trip: paris – honfleur

Cities: paris – magnanville – manthelon – brionne – honfleur – trouville – lisieux

paris – magnanville : 78 km
magnanville – manthelon : 68 km
manthelon – brionne : 51 km
brionne – honfleur : 61 km
honfleur – trouville – lisieux : 70 km ?

Places where we stayed
magnanville: Hotel Eclipse
manthelon: friend’s house (aunt and uncle of a friend of mine)
brionne: coeur de lion
honfleur: hotel Lutea