Skip to content

provides a script for converting openstreetmap data to garmin's img-format

Notifications You must be signed in to change notification settings

Aikhjarto/osm2garmin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

osm2garmin

This project provides a script for converting OpenStreetMap data to Garmin's img-format.

Unlike a lot of other projects that aim to do the same, this script generates routeable maps with functioning address search.

Capabilities:

  • download of OpenStreetmap data
  • cropping to only interessting parts
  • support for several map styles for different needs, e.g. hiking, bicycling, motorcycling
  • functioning routing
  • address search on device
  • multilayer maps (you can turn on/off individual layers if your device supports this)

I do not intend to provide a fully functional out-of-the-box experience. It would be a shame that the wide variety of geo-information provided by OpenStreetMap is limited by means of simple filter script. The users of such a script would never get a glimpse of the possibilities they have with the data. This project is intended to provide a starting point for your personal OSM to Garmin conversion project. Nonetheless, I would be happy for feedback, contributions and bug-reports within the project site https://github.com/Aikhjarto/osm2garmin

Dependencies

This script has two types of dependencies. Firstly, it needs auxiliary scripts and programs. Secondly, it needs auxiliary (beside osm) data. Great thanks to the people who developed those. See the parameter section in the beginning of make.sh for examples of how to set the path's to auxiliary files.

Auxiliary programs

This script makes use of well developed applications for processing, filtering, and modifying OSM data.

Auxiliary data

MKGMAP will require style files. These files hold rules how OSM object IDs should be translated to Garmin object IDs. Possible sources include:

If you want to modify the styles yourself, you can find an explanation of the syntax here: http://wiki.openstreetmap.org/wiki/Mkgmap/help/style_rules#Element_type_definition

TYP files define the way (shape, color) how items (streets, buildings, POI, landscape,...) are displayed on your Garmin device. Typically they come with style files. However, there are serveral other sources like

There are also several editors for TYP-files out there:

POLY files define a polygon around a specific section on a map. This can be used to crop e.g. the map of Europe to contain only the Alps. As the the whole world (even not whole continents) probably won't fit on your Garmin device you'll want to crop the maps. The structure of *.poly files is explained in

I recommend an OSM editor like http://josm.openstreetmap.de/ to edit the poly files.

Usage

  1. Adjust the parameters in the first section of make.sh to your system and your needs.

  2. Issue a ./make.sh

A more sophisticated start command can be "./make.sh | tee osm2garmin.log" from inside a screen. This will log simultanously to a file and to stdout.

Note on Hardware Demands

Keep in mind that processing large portions (several countries or even a whole continent) of OpenStreeMap data can heavily stress your system. Your free RAM should be larger than your source *.pdf and your temporary folder should be able to hold about 5 times the size of the source *.pbf file. Once you meet these requirements, you should also consider that it will most probably take serveral hours of CPU time to crop, filter and convert the OSM data.

Disclaimer

The files in this project are distributed WITHOUT ANY WARRANTY and WITHOUT ANY IMPLIED WARRANTY.

About

provides a script for converting openstreetmap data to garmin's img-format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages