• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

doc/H03-May-2022-4941

examples/H03-May-2022-2,0281,735

lib/H03-May-2022-

LICENCEH A D10-Mar-202117.6 KiB341281

READMEH A D10-Mar-20212.7 KiB8858

README

1
2Making maps for Garmin GPS units
3================================
4
5The goal of the project is to take the map data from
6OpenStreetMap <http://www.openstreetmap.org>
7and to generate a map in the Garmin file format so
8that it can be loaded onto Garmin GPS units.
9
10The original motivation was to help plan mapping sessions,
11but now the maps are becoming useful in their own right.
12
13Using
14=====
15
16This program requires Java 1.8 or above to run.
17
18Producing a map is simple.  Save OpenStreetMap data from JOSM
19or by any other method to a file and copy it to the mkgmap
20directory.  In the following examples this file is called data.osm.
21
22Run the command:
23
24	java -jar mkgmap.jar data.osm
25
26This will produce a file called 63240001.img.
27
28You can copy the map to your Garmin GPS unit in any way you know how.
29It is best to use a SD card, since then if anything goes wrong you
30can remove it from the unit and all should be well again.
31
32Copy it to the file "Garmin/gmapsupp.img" on the card.
33On many modern Garmin devices, you can use a different
34name so that you can have more than one set of maps.
35
36*NOTE* this will overwrite any other map you have on
37there, make sure that you are not overwriting a valuable map.
38
39Another way would be to use a USB memory card writer and
40for a large map this is quicker as many GPS's have a slow USB
41connection.
42
43There are also various programs that can send a map to the
44device.
45
46You should (depending on the particular Garmin model) see a OSM
47copyright message on starting up, and the map name 'OSM Street map'
48should appear in the map setup section.
49
50For more help see: http://www.mkgmap.org.uk/doc/index.html
51
52
53Invoking mkgmap
54--------------
55
56Most of the default names mentioned in the previous section can be altered
57by suitable options.  Run
58
59 java -jar mkgmap.jar --help=options
60
61to obtain an up to date and complete listing of options.
62
63Also consider examples/sample.cfg as a starting point for your options package
64
65Processing more than one file at a time
66---------------------------------------
67
68The Garmin map format was designed so that a map is made of a number
69of tiles, and if your map has more data than can fit into a single
70tile, you will have to split the map.
71
72See: http://www.mkgmap.org.uk/doc/splitter.html for a program that
73can do this.
74
75You can compile all of the map tiles that are created by splitter
76all at once, by simply listing them all on the command line.
77
78Acknowledgements
79================
80
81This project is almost entirely based on the file format specification
82document written by John Mechalas at the SourceForge project at
83http://sourceforge.net/projects/garmin-img.  The 'imgdecode' program
84from the same source was also very important in checking that I was
85on the right lines to producing a good file.  Thanks.
86
87Steve
88