Category Archives: gps

gps from openstreetmap data

Adafruit’s ultimate GPS logger

Today I tested Adafruit’s ultimate GPS logger.
As usual, it was well documented on Adafruit’s site.

I took the first example from the tutorial and this was what I got:

Adafruit's ultimate GPS logger montage
Adafruit’s ultimate GPS logger montage

And here are the pictures from the soldering:
2014-04-23 16.58.08

2014-04-23 16.51.02

2014-04-23 16.50.55

2014-04-23 16.50.51

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(
at it.unimi.dsi.fastutil.longs.LongArrayList.ensureCapacity(
at it.unimi.dsi.fastutil.longs.LongArrayList.size(
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.