| 1 |
= Conversion Style manual |
| 2 |
The mkgmap team |
| 3 |
:pubdate: set to date of pdf generation |
| 4 |
:toc: |
| 5 |
:numbered: |
| 6 |
:doctype: book |
| 7 |
:website: http://www.mkgmap.org.uk |
| 8 |
:email: [email protected] |
| 9 |
:description: Describes the style language that converts from OSM tags to Garmin types. |
| 10 |
:max-width: 58em |
| 11 |
|
| 12 |
//// |
| 13 |
To generate style-manual.pdf you will need asciidoc, fop, python-pygments, mkgmap-pygments. |
| 14 |
eg. for a Fedora system, as superuser: |
| 15 |
# dnf install asciidoc.noarch |
| 16 |
# dnf install fop.noarch |
| 17 |
# dnf install python-pygments.noarch |
| 18 |
# pip install mkgmap-pygments |
| 19 |
|
| 20 |
Then, as normal user, cd to this directory (doc/styles) and |
| 21 |
$ make pdf |
| 22 |
//// |
| 23 |
|
| 24 |
:frame: topbot |
| 25 |
:grid: rows |
| 26 |
|
| 27 |
// Used for conditional compiles for a unix/windows version. Expect to |
| 28 |
// use this more for the tutorial |
| 29 |
:windows: 1 |
| 30 |
:linux: 1 |
| 31 |
:max: 1 |
| 32 |
|
| 33 |
Introduction |
| 34 |
------------ |
| 35 |
|
| 36 |
This manual explains how to write a mkgmap style to convert |
| 37 |
between OSM tags and features on a Garmin GPS device. |
| 38 |
|
| 39 |
A style is used to choose which OSM map features appear in the |
| 40 |
Garmin map and which Garmin symbols are used. |
| 41 |
|
| 42 |
There are a few styles built into mkgmap, but |
| 43 |
as there are many different purposes a map may be used for, the default |
| 44 |
styles in mkgmap will not be ideal for everyone, so |
| 45 |
you can create and use styles external to mkgmap. |
| 46 |
|
| 47 |
The term _style_ could mean the actual way that the features appear on |
| 48 |
a GPS device, the colour, thickness of the line and so on. This manual |
| 49 |
does not cover such issues, and if that is what you are looking for, then you |
| 50 |
need the documentation for *TYP files*. |
| 51 |
|
| 52 |
Few people will want to write their own style from scratch, most people |
| 53 |
will use the built in conversion style, or at most make a few changes |
| 54 |
to the default style to add or remove a small number of features. |
| 55 |
For general information about running and using mkgmap see the |
| 56 |
*Tutorial document*. |
| 57 |
|
| 58 |
To be clear this is only needed for converting OSM tags, if you are |
| 59 |
starting with a Polish format file, there is no style involved as the |
| 60 |
garmin types are already fully specified in the input file. |
| 61 |
|
| 62 |
For general information about the OpenStreetMap project see the |
| 63 |
http://wiki.openstreetmap.org[OpenStreetMap wiki]. |
| 64 |
|
| 65 |
|
| 66 |
:leveloffset: 1 |
| 67 |
|
| 68 |
include::design.txt[] |
| 69 |
|
| 70 |
include::files.txt[] |
| 71 |
|
| 72 |
include::rules.txt[] |
| 73 |
|
| 74 |
include::creating.txt[] |
| 75 |
|
| 76 |
include::about.txt[] |