Debian Codegraph @

doc/README.examples

raw
1 $Id$
2
3 README.examples for mkgmap
4
5 This file contains a number of examples of how to run mkgmap. It does
6 not attempt to label any way correct, but rather to give a number of
7 situations and goals and show ways that people think are useful for
8 that situation. It is formatted to enable reasonably easy cut and paste.
9
10 * OSM maps for use on garmin
11
12 This example is for the goal of producing a maximally usable OSM map
13 for Garmin, intended for use rather than to assist with mapping.
14
15 # Split the Massachusetts osm file (from cloudmade).
16 java -Xmx2000m -jar splitter.jar massachusetts.osm > OUT.01.splitter 2>&1
17
18 # Create the map. Family-id is arbitrary. Use the areas created by
19 # the splitter. Create an overview map and a tdb file.
20 java -enableassertions \
21 -Xmx2048m \
22 -jar mkgmap.jar \
23 --tdbfile \
24 --gmapsupp \
25 --family-id=632 \
26 --overview-mapname=40000001 \
27 --country-abbr="US" \
28 --country-name="United States" \
29 --region-abbr="MA" \
30 --region-name="Massachusetts" \
31 --description="OSM gdt" \
32 --route \
33 --add-pois-to-areas \
34 -c template.args > OUT.02.mkgmap 2>&1
35
36 # Create a gmapi format map given the above map, overview map, and tdb.
37 mkdir -p GMAPI
38 gmapi-builder.py -o GMAPI -t 40000001.tdb -b 40000001.img -v