User:Pixt

From OpenStreetMap Wiki
Jump to: navigation, search

About Me

I am a mapper from Berlin, Germany.
My favorite GPS is an Garmin Oregon 300.
I use it in car, on motorcycle, by bicycle or by hiking.

useful links

best page using OSM: keepright
Please check this page a week after all your edits and check your edits !
Nobody is perfect. Everyone makes a mistake. Please correct your mistakes.

How to create a routable map for Garmin Devices

First, it´s really simple. As an example, here are the steps to create a map for Germany.

Preparation

  • Create a directory. Example C:\OSM
  • Download splitter.
  • Extract the zip into C:\OSM. The resulting path to splitter should look like this: C:\OSM\splitter-r106\splitter.jar .
  • Download mkgmap.
  • Extract the zip into C:\OSM. The resulting path to mkgmap should look like this: C:\OSM\mkgmap-r1626\mkgmap.jar .
  • Create a directory for the splitcache. C:\OSM\splitcache.
  • Open your prefered texteditor, like notepad. Copy and paste the code below.
cd C:\OSM\
java -Xmx1536m -jar \splitter-r107\splitter.jar germany.osm.bz2 --cache=C:\Daten\DEV\OSM\DE\splitcache "--description=OSM Germany %date%" --max-nodes=1000000
java -Xmx1536m -ea -jar \mkgmap-r1645\mkgmap.jar --gmapsupp --draw-priority=25 --transparent --country-name=GERMANY --country-abbr=DE --family-name=OpenStreetMap --latin1 --lower-case --name-tag-list=name:de,en,int_name,name --road-name-pois --route --net --add-pois-to-areas --preserve-element-order --location-autofill=1 --tdbfile --index --nsis -c template.args
exit
  • Save this as process.bat in C:\OSM and close notepad.

Generating the map

  • download the OSM Data for Germany into C:\OSM. The files are updated daily. Thanks to Geofabrik !
  • If the download is finished run the process.bat .
  • Wait an hour and it should be done.
  • Copy the gmapsupp.img to your GPS unit.

Improvements

  • Install WGET for Windows.
  • Update your process.bat with the code below.
cd C:\OSM\
wget http://download.geofabrik.de/osm/europe/germany.osm.bz2 -N
java -Xmx1536m -jar \splitter-r107\splitter.jar germany.osm.bz2 --cache=C:\Daten\DEV\OSM\DE\splitcache "--description=OSM Germany %date%" --max-nodes=1000000
java -Xmx1536m -ea -jar \mkgmap-r1645\mkgmap.jar --gmapsupp --draw-priority=25 --transparent --country-name=GERMANY --country-abbr=DE --family-name=OpenStreetMap --latin1 --lower-case --name-tag-list=name:de,en,int_name,name --road-name-pois --route --net --add-pois-to-areas --preserve-element-order --location-autofill=1 --tdbfile --index --nsis -c template.args
exit
  • With wget you don´t need to download the osm data manualy. Run the Batch. Wget will do the download.

Notes

Have an eye on the releases of splitter and mkgmap. Download the latest versions and update the pathes if needed. Pixt 15:42, 05 April 2010 (UTC)