A new Openstreetmap Garmin Map of the Philippines is now available in my wiki. The latest update was based on 20090225 OSM data.
New in this update are:
– 33,000 km. of roads;
– more POIs and improved POI searching for roads and cities;
– improved road data in Mindanao;
– fixed problems with abbreviated POI names in Garmin Mobile XT .
Here’s the link for the direct download.
(Go to the wiki for the daily map updates)
From the wiki: “mkgmap converts OpenStreetMap data into a map that can be loaded onto a Garmin GPS device. It does the conversion in one step without depending on any other program. It requires Java 1.5.”
The java environment makes it easy to prepare the map in any OS.
The process is in 4 general steps: build mkgmap, get data, convert data, transfer to gps. This process was tested using Ubuntu Linux and Mac OS (it should be the same with to WinXP). What you need are OSM data, java 1.5 0r 1.6, command terminal (command prompt in windows speak) and subversion (optional)
The text in this font is what you type in your terminal
You can get a daily snapshot of mkgmap from the website. Then, decompress the file. Open a terminal and type:
java -jar mkgmap.jar
The last command should give you the help text on usage and options.
However, current mkgmap development is in high gear and new features are added every week. This is why is use the trunk
To get latest trunk
nod svn snapshot, in the terminal type the following:
svn co http://svn.parabola.me.uk/mkgmap/branches/trunks trunk
Building the source
java -jar dist/mkgmap.jar
Get the data
Now you want to get the latest OSM data, you have several options.
1. I previously wrote about using OSM for your website. Follow the steps from 1 to 2. From the export tab, select “OpenStreetMap XML Data” option to get the OSM data. This is OK if you want to get the data for small areas.
2. For large areas, use the the HTTP API or osmxapi
3. Or simply get them from CloudMade. CloudMade provides free country-wide download of OSM’s weekly data dump.
Decompress the file.
Convert the data to Garmin img
Again in the terminal, run the following command:
java -jar mkgmap.jar [options] data.osm
The exact command I use is below (remove the “\” and type the syntax in one line):
java -Xmx512m -jar mkgmap.jar --code-page=1252 \
--tdbfile --gmapsupp --latin1 --country-abbr=PHI \
--country-name=PHILIPPINES --road-name-pois --route \
--description="Openstreetmap Philippines" \
This will produce a file called 63240000.img, 63240001.img, 63240000.tdb and gmapsupp.img. You need to transfer the gmapsupp.img file to your GPS unit.
Transfer the map to your Garmin unit
My Garmin eTrex Legend Cx micro-SD Card can be directly read as another filesystem on my Linux. Just copy the map to the file Garmin/gmapsupp.img. You can also use sendmap to transfer the gmapsupp.img to your unit.
Now go out and test your OSM map!
Lately, I have been struggling in creating a Mapsource installer. I haven’t found a straight forward way without using CGPSmapper utility. Any tip on this? I will post another entry when the issue with Mapsource is resolved.
Another blog I plan to do is making this map:
Note: Most of the instructions above were copied from the OSM wiki
UPDATE: Several suggestions from the mkgmap-dev list.
Replaced nod to trunk since nod branch was merged already to trunk.