| 1 |
== Background == |
| 2 |
|
| 3 |
The mkgmap program is distributed in Java archive format compiled for use under |
| 4 |
the Java Runtime Environment 8. You will need the Java SE Runtime Environment 8 |
| 5 |
installed on your system in order to run mkgmap. |
| 6 |
|
| 7 |
Garmin maps consist of a series of .img files, with each file containing the |
| 8 |
data for one tile of the map. Unless you intend to build a very small map, you |
| 9 |
will need to use the accompanying splitter program to split your map into |
| 10 |
smaller tiles. The individual tiles can be joined together to produce a single |
| 11 |
gmapsupp.img file which contains the whole map and can be copied into the |
| 12 |
/Garmin folder of an SD card for use by a GPS device. If you want to create more |
| 13 |
than one map for use on your GPS, the gmapsupp.img files can be renamed to be |
| 14 |
unique, for example gmapsupp1.img, gmapsupp2.img. |
| 15 |
|
| 16 |
A typical simple example using both splitter and mkgmap: |
| 17 |
|
| 18 |
: java.exe -Xmx2g -jar splitter.jar england-latest.o5m |
| 19 |
: java.exe -jar mkgmap.jar --gmapsupp -c template.args |
| 20 |
|
| 21 |
The first command splits the Open Street Map data into smaller files |
| 22 |
with each file containing the data for one tile of the map. It also |
| 23 |
produces a file named template.args that contains the names of all |
| 24 |
the generated files. |
| 25 |
|
| 26 |
The second command takes as input all the individual files listed |
| 27 |
in the template.args file generated by splitter, produces a .img |
| 28 |
file for each tile, then merges all the tiles together into a |
| 29 |
single gmapsupp.img file. |
| 30 |
|
| 31 |
Regional extracts of OpenStreetMap data can be obtained from |
| 32 |
[https://download.geofabrik.de/ '''download.geofabrik.de''']. |
| 33 |
|
| 34 |
== Documentation == |
| 35 |
The documentation that is currently available on this site is listed |
| 36 |
below. |
| 37 |
|
| 38 |
[/doc/options '''Command line options'''] |
| 39 |
The mkgmap command line options. This is also available using the command: |
| 40 |
mkgmap --help=options |
| 41 |
|
| 42 |
[/doc/pdf/style-manual.pdf '''Style Manual'''] [pdf] |
| 43 |
This is the complete documentation of the style rules that determine how |
| 44 |
the OSM tagged features are converted into Garmin features. |
| 45 |
|
| 46 |
[/doc/typ-compiler '''TYP Compiler Manual'''] |
| 47 |
This documents the language that is accepted by the TYP compiler that |
| 48 |
is included within mkgmap. |
| 49 |
|
| 50 |
[/doc/logging '''Logging'''] |
| 51 |
Instructions on how to control messages that are logged and to where |
| 52 |
they are written. |
| 53 |
|
| 54 |
[/doc/tuning '''Tuning'''] |
| 55 |
Instructions on how to minimise execution time and avoid running out of memory. |