Debian Codegraph @

resources/help/en/options

raw
1 === Command line ===
2
3 The command line is of the format:
4
5 java.exe [java-options] -jar mkgmap.jar [mkgmap-options]
6
7 === Java options ===
8
9 Details of the Java options are available at docs.oracle.com. The most likely
10 options you may need to use are:
11
12 -Xmx<size>[g|G|m|M|k|K]
13 Use this option to set the maximum Java heap size in GB, MB, KB or bytes.
14 Mkgmap allows the use of multiple CPU cores, and the amount of heap memory
15 required increases proportionally with the number of CPU cores being used.
16 The default value may not be sufficient to allow mkgmap to use all the
17 available CPU cores, which will cause the run time to be longer than
18 necessary or can cause mkgmap to crash if it runs out of memory. To allow
19 mkgmap to run optimally, you may need to use this option to allow more
20 memory to be allocated to the Java heap. Note there is no space or equals
21 sign in the option.
22
23 -enableassertions
24 -ea
25 Causes an error to be thrown if an assertion written in the mkgmap code is
26 evaluated as not true. This is useful in detecting bugs in the mkgmap code.
27
28 -Dlog.config=filename
29 Specifies a logging configuration file that allows you to enable and
30 disable specific logging messages. This is useful if you want to see
31 certain types of message that are not logged by default or choose where the
32 messages should be written.
33
34 === Mkgmap options ===
35
36 The order of the options is significant in that options only apply to
37 subsequent input files. If you are using splitter, you probably will need to
38 put most of your options before '-c template.args' (this file is generated by
39 splitter).
40
41 === Information options ===
42
43 These options provide information and do not require any input files.
44
45 --help[=help|options|links|copyright|logging]
46 Display help on the given topic. If the topic is omitted then general help
47 information is displayed, the same as in help=help.
48
49 --version
50 Write program version to stderr.
51
52 === File options ===
53
54 filename
55 --input-file=filename
56 Read input data from the given file. This option (or just a filename) may
57 be specified more than once. Make sure you set all wanted options before
58 this.
59
60 --gmapsupp
61 Create a gmapsupp.img file that can be uploaded to a Garmin or placed in
62 the /Garmin folder of a microSD card (such as by mounting the device in USB
63 mass storage mode). It can be used on already compiled img files, or if the
64 input files are not already compiled then they are compiled first and then
65 the gmapsupp is created.
66
67 --gmapi
68 Create a directory in the "gmapi" format required by Mac applications. It
69 can also be used for Windows programs; copy the complete directory tree
70 into {user}\AppData\Roaming\Garmin\Maps or \ProgramData\Garmin\Maps and the
71 map will be available to Garmin PC programs. The directory name is
72 --family-name with extension .gmap.
73
74 --gmapi-minimal[=<include-pattern>]
75 Special option for map providers to reduce disk writes when updating. Works
76 like --gmapi but does not write Product data for input files which are
77 provided as *.img. It is assumed that the content of those files wasn't
78 changed and thus doesn't need a rewrite. The optional include-pattern is a
79 regular expression which can be used to specify *.img files for which a
80 write should be forced. The pattern is used on the full path to the input
81 file. The global index files and the *.tdb file will still contain all
82 needed references.
83 Example usage with pattern:
84 --gmapi-minimal=.*4711[0-9]{4}\.img
85 This pattern matches file names between 47110000.img and 47119999.img
86 and ignores the path.
87
88 -c filename
89 --read-config=filename
90 Each line of the named file contains a command option in the form
91 option=value or option:value. The options are included as arguments of the
92 executed command as if they had been specified on the command line with one
93 exception: a relative path given with option input-file is assumed to be
94 relative to the location of the file.
95
96 Lines beginning with a # character are ignored and can be used as
97 comments. Any command line option can be specified, however the leading
98 '--' must be omitted. The short option names with a single '-' cannot be
99 used, simply use the long name instead.
100
101 --output-dir=directory
102 Specify the directory in which all output files are written. It defaults to
103 the current working directory, i.e. the directory the command is executed
104 from.
105
106 -n name
107 --mapname=name
108 Set the name of the map. Garmin maps are identified by an 8 digit number.
109 The default is 63240001. It is best to use a different name if you are
110 going to be making a map for others to use so that it is unique and does
111 not clash with others.
112
113 --description=text
114 Set the descriptive text for individual tiles and gmapsupp.img. Map tiles
115 take the most recent --description before the --input-file option that
116 defines the tile. Because gmapsupp.img is created after all the other tiles
117 have been processed, gmapsupp.img takes the last --description found in the
118 command line, regardless of where the --gmapsupp option is placed in the
119 command line.
120
121 Note that if you use splitter with its --geonames-file option or its own
122 --description option, the generated template.args file includes
123 --description values that will apply to individual tiles. In this case it
124 is not possible to override splitter's description for individual tiles
125 from the mkgmap command line. Placing the mkgmap --description option after
126 -c template.args ensures that the value is applied to gmapsupp.img.
127
128 Different GPS devices and PC programs handle descriptions inconsistently.
129 Some display the description when selecting maps or tiles, others use the
130 family name.
131
132 --country-name=name
133 Set the map's country name. The default is "COUNTRY".
134
135 --country-abbr=abbreviation
136 Set the map's abbreviated country name. The default is "ABC".
137
138 --region-name=name
139 Set the map's region name. By default, the map has no region name.
140
141 --region-abbr=abbreviation
142 Set the map's abbreviated region name. By default, the map has no
143 abbreviated region name.
144
145 === Label options ===
146
147 --code-page=number
148 Specify which international character set is to be used. Only 8 bit
149 character sets are supported so you have to specify which code page you
150 want to use. It is entirely dependent on the device firmware which code
151 pages are supported.
152
153 --latin1
154 This is equivalent to --code-page=1252.
155
156 --unicode
157 This is equivalent to --code-page=65001. Note that some devices don't
158 support Unicode maps produced by mkgmap.
159
160 --lower-case
161 Allow labels to contain lower case letters. Note that many Garmin devices
162 are not able to display lower case letters at an angle.
163
164 === Address search options ===
165
166 --index
167 Generate an address index to allow searches by address. The default is to
168 not create an address index.
169
170 The address fields are assigned by special mkgmap address tags using the
171 style file:
172 mkgmap:country
173 mkgmap:region
174 mkgmap:city
175 mkgmap:postal_code
176 mkgmap:street
177 mkgmap:housenumber
178 mkgmap:phone
179 (mkgmap:is_in - used by --location-autofill=is_in)
180
181 If the index is created from previously compiled .img files, then the same
182 code page and sorting options (e.g. --code-page, --latin1) must be used as
183 were used to compile the individual map tiles.
184
185 --split-name-index
186 Index each part of a street name separately. For example, if the street is
187 "Aleksandra Gryglewskiego" then you will be able to search for it as both
188 "Aleksandra" and "Gryglewskiego". It will also increase the size of the
189 index. Useful in countries where searching for the first word in name is
190 not the right thing to do. Words following an opening bracket '(' are
191 ignored.
192 See also option --road-name-config.
193
194 --road-name-config=filename
195 Provide the name of a file containing commonly used road name prefixes and
196 suffixes. This option handles the problem that some countries have road
197 names which often start or end with very similar words, e.g. in France the
198 first word is very often 'Rue', often followed by a preposition like 'de
199 la' or 'des'. This leads to rather long road names like 'Rue de la
200 Concorde' where only the word 'Concorde' is really interesting. In the USA,
201 you often have names like 'West Main Street' where only the word 'Main' is
202 important. Garmin software has some tricks to handle this problem. It
203 allows the use of special characters in the road labels to mark the
204 beginning and end of the important part. In combination with option
205 --split-name-index only the words in the important part are indexed.
206
207 There are two main effects of this option:
208 - On the PC, when zooming out, the name 'Rue de la Concorde' is only
209 rendered as 'Concorde'.
210 - The index for road names only contains the important part of the
211 name. You can search for road name 'Conc' to find road names like 'Rue
212 de la Concorde'. However, a search for 'Rue' will not list 'Rue de la
213 Concorde' or 'Rue du Moulin'. It may list 'Rueben Brookins Road' if
214 that is in the map.
215
216 Another effect is that the index is smaller.
217 See comments in the example roadNameConfig.txt for further details.
218
219 --mdr7-excl=name[,name...]
220 Specify words which should be omitted from the road index. It was developed
221 before option --road-name-config and is probably no longer needed. Matching
222 is case insensitive.
223 Example usage: --mdr7-excl="Road, Street, Weg"
224
225 --mdr7-del=name[,name...]
226 Use this option if your style adds strings to the labels of roads which you
227 want to see in the map but which should not appear in the result list of a
228 road name / address search. When creating the index, words in the given
229 list are removed from the end of road labels. Any word not found in the
230 given list is considerered to be a valid label; words before the last valid
231 label are not removed. If the label consists of a single word in the given
232 list, or all the words in the label are contained in the given list, then
233 the label is omitted from the index. The comparison is case insensitive and
234 words are separated by a space.
235 Example: Assume your style adds surface attributes like 'pav.' or 'unp.' to
236 a road label. You can use --mdr7-del="pav.,unp." to remove these suffixes
237 from the index.
238
239 --poi-excl-index=poi[-poi][,poi[-poi]...]
240 By default, mkgmap indexes the following POI types with a non-empty label:
241 - 0x00 .. 0x0f (cities, sub type 0, type <= 0xf)
242 - 0x2axx..0x30xx (Food & Drink, Lodging, ...)
243 - 0x28xx (no category ?)
244 - 0x64xx .. 0x66xx (attractions)
245 This option allows the exclusion of POI types from the index. The excluded
246 types are not indexed, but may still be searchable on a device, as some
247 devices seem to ignore most of the index, e.g. an Oregon 600 with firmware
248 5.00 only seems to use it for city search. If your device finds a POI name
249 like 'Planet' when you search for 'Net', it doesn't use the index because
250 the index created by mkgmap cannot help for that search.
251
252 So, this option may help when you care about the size of the index or the
253 memory that is needed to calculate it. The option expects a comma separated
254 list of types or type ranges. A range is given with from-type-to-type, e.g.
255 0x6400-0x6405. First and last type are both excluded. A range can span
256 multiple types, e.g. 0x6400-0x661f.
257 Examples for usage:
258 - Assume your style adds a POI with type 0x2800 for each
259 addr:housenumber. It is not useful to index those numbers, so you can
260 use --poi-excl-index=0x2800 to exclude this.
261 - For the aforementioned Oregon you may use
262 --poi-excl-index=0x2a00-0x661f to reduce the index size.
263
264 --bounds=directory|zipfile
265 Specify a directory or zip file containing the pre-processed bounds files.
266 Bounds files in a zip file must be located in the zip file's root
267 directory.
268
269 The pre-processed boundaries are used to add special tags to all elements
270 (points, lines and polygons) containing the elements location information.
271 The style file can be used to assign the address tags mkgmap:country,
272 mkgmap:region etc. using these values.
273
274 The following special tags are added:
275 mkgmap:admin_level2 : Name of the admin_level=2 boundary
276 mkgmap:admin_level3 : Name of the admin_level=3 boundary
277 ..
278 mkgmap:admin_level11
279 mkgmap:postcode : the postal_code value
280 Pre-processed bounds can be created with the following command:
281 java -cp mkgmap.jar
282 uk.me.parabola.mkgmap.reader.osm.boundary.BoundaryPreprocessor
283 <inputfile> <boundsdir>
284
285 The input file must contain the boundaries that should be pre-processed. It
286 can have OSM, PBF or O5M file format. It is recommended that it contains
287 the boundary data only to avoid very high memory usage. The boundsdir gives
288 the directory where the processed files are stored. This directory can be
289 used as --bounds parameter with mkgmap.
290
291 --location-autofill=[option1,[option2]]
292 Controls how the address fields for country, region, city and zip info are
293 gathered automatically if the fields are not set by using the special
294 mkgmap address tags (e.g. mkgmap:city - see option --index). Warning:
295 automatic assignment of address fields is somehow a best guess.
296 is_in
297 The is_in tag is analysed for country and region information.
298 nearest
299 The city/hamlet points that are closest to the element are used to
300 assign the missing address fields. Beware that cities located in the
301 same tile are used only. So the results close to a tile border have
302 less quality.
303
304 --housenumbers
305 Enables house number search for OSM input files. All nodes and polygons
306 having addr:housenumber set are matched to streets. A match between a house
307 number element and a street is created if the street is located within a
308 radius of 150m and the addr:street tag value of the house number element
309 equals the mgkmap:street tag value of the street. The mkgmap:street tag
310 must be added to the street in the style file. For optimal results, the
311 tags mkgmap:city and mkgmap:postal_code should be set for the housenumber
312 element. If a street connects two or more cities this allows all addresses
313 along the road to be found, even when they have the same number.
314 Example for given street name:
315 Node - addr:street=Main Street addr:housenumber=2
316 Way 1 - name=Main Street
317 Way 2 - name=Main Street, mkgmap:street=Main Street
318 Way 3 - mkgmap:street=Mainstreet
319 Way 4 - name=Main Street [A504]
320 The node matches to Way 2. It has mkgmap:street set with a value equal to
321 the addr:street tag value of the house number node.
322
323 If the street is not given with addr:housenumber, mkgmap uses heuristics
324 to find the best match.
325
326 Tells mkgmap to write NET data. If you specify this option, you do not
327 need to specify --net and option -no-net is ignored.
328
329 === Overview map options ===
330
331 --overview-mapname=name
332 If --tdbfile is enabled, this gives the name of the overview .img and .tdb
333 files. The default map name is osmmap.
334
335 --overview-mapnumber=8 digit number
336 If --tdbfile is enabled, this gives the internal 8 digit number used in the
337 overview map and tdb file. The default number is 63240000.
338
339 --overview-levels=level:resolution[,level:resolution...]
340 Like levels, specifies additional levels that are to be written to the
341 overview map. Counting of the levels should continue. Up to 8 additional
342 levels may be specified. The hard coded default is empty.
343 See also option --overview-dem-dist.
344
345 --remove-ovm-work-files
346 If --overview-levels is used, mkgmap creates one additional file with the
347 prefix ovm_ for each map (*.img) file. These files are used to create the
348 overview map. With option --remove-ovm-work-files=true the files are
349 removed after the overview map is created. The default is to keep the
350 files.
351
352 === Style options ===
353
354 --style-file=directory|zip-filename|url
355 Specify the path to a directory, zip file or url containing style
356 information. A style is composed of a group of files and typically contains
357 the following files: version, info, options, points, lines, polygons,
358 relations - see the style manual for further details.
359
360 The style files can be in the specified directory or contained in a
361 sub-directory. If styles are contained in sub-directories then the required
362 style must be specified with the --style option.
363
364 --style=name
365 Specify a style name. Must be used if --style-file points to a location
366 containing multiple styles. If used without also specifying --style-file,
367 it selects one of the built-in styles.
368
369 --style-option=tag[=value][;tag[=value]...]
370 Provide a semicolon separated list of tags which can be used in the style.
371 The intended use is to make a single style more flexible, e.g. you may want
372 to use a slightly different set of rules for a map of a whole continent.
373 The tags given will be prefixed with "mkgmap:option:". If no value is
374 provided the default "true" is used.
375 Example: --style-option=light;routing=car
376 will add the tags mkgmap:option:light=true and mkgmap:option:routing=car to
377 each element before style processing happens. This can then be used in
378 rules like:
379 landuse=farmland & mkgmap:option:light=true {delete landuse}
380
381 --list-styles
382 List the available styles. If this option is preceded by a --style-file
383 option then it lists the styles available within that file or folder.
384
385 --check-styles
386 Perform some checks on the available styles. If this option is preceded by
387 a --style-file option then it checks the styles available within that file.
388 If it is also preceded by the --style option it will only check that style.
389
390 --levels=level:resolution[,level:resolution...]
391 Change the way that the levels on the map correspond to the zoom levels in
392 the device. See customisation help. The hard coded default is: "0:24, 1:22,
393 2:20, 3:18, 4:16", although each style can have its own default. The
394 default style for example overwrites it with "0:24, 1:22, 2:20, 3:18". Up
395 to 8 levels may be specified.
396
397 --name-tag-list=tag[,tag...]
398 Specify the tag that will be used to supply the name. Useful for language
399 variations. You can supply a list of tags and the first one found will be
400 used. e.g. --name-tag-list=name:en,int_name,name
401
402 === Product description options ===
403
404 --family-id=integer
405 This is an integer that identifies a family of products. Range: [1..65535]
406 Default: 6324
407
408 --family-name=name
409 If you build several maps, this option describes the family name of all of
410 your maps. Garmin will display this in the map selection screen. The
411 default is "OSM map".
412 Example: --family-name="OpenStreetmap mkgmap XL 2019"
413
414 --product-id=integer
415 This is an integer that identifies a product within a family. It is often
416 just 1, which is the default.
417
418 --product-version=integer
419 The version of the product. Default value is 100 which means version 1.00.
420
421 --series-name=name
422 This name will be displayed by Garmin PC programs in the map selection
423 drop-down. The default is "OSM map".
424
425 --area-name=name
426 Area name is displayed on Garmin units (or at least on eTrex) as the second
427 part of the mapname in the list of the individual maps.
428
429 --copyright-message=text
430 Specify a copyright message for files that do not contain one.
431
432 --copyright-file=filename
433 Specify copyright messages from a file. Note that the first copyright
434 message is not displayed on a device, but is shown in BaseCamp. The
435 copyright file must include at least two lines and be UTF-8 encoded. The
436 following symbols will be substituted by mkgmap: $MKGMAP_VERSION$,
437 $JAVA_VERSION$, $YEAR$, $LONGDATE$, $SHORTDATE$ and $TIME$. Time and date
438 substitutions use the local date and time formats.
439
440 --license-file=filename
441 Specify a file which content will be added as license. The license file
442 must be UTF-8 encoded. The following symbols will be substituted by mkgmap:
443 $MKGMAP_VERSION$, $JAVA_VERSION$, $YEAR$, $LONGDATE$, $SHORTDATE$ and
444 $TIME$. Time and date substitutions use the local date and time formats.
445 All entries of all maps will be merged in the overview map.
446
447 === Optimization options ===
448 --improve-overview
449 Tells mkgmap to use a more complex method to calculate the outlines of
450 complex multipolygons which are visible in the overview map. This reduces
451 the size of the overview map and it improves especially complex coastline
452 areas.
453
454 --reduce-point-density=NUM
455 Simplifies the ways with the Douglas Peucker algorithm. NUM is the maximal
456 allowed error distance, by which the resulting way may differ from the
457 original one. This distance gets shifted with lower zoom levels. (Default
458 is 2.6, which should lead to invisible changes) See also --simplify-lines
459 which gives better control.
460
461 --reduce-point-density-polygon=NUM
462 Allows you to set the maximal allowed error distance for the DP algorithm
463 to be applied against polygons. See also --simplify-polygons which gives
464 better control.
465
466 --merge-lines
467 Try to merge lines. This helps the simplify filter to straighten out longer
468 chunks at lower zoom levels. Decreases file size more. Increases paint
469 speed at low zoom levels. Default is enabled, use --no-merge-lines to
470 disable.
471
472 --allow-reverse-merge
473 Use this option to allow the reversing of lines and roads to get even
474 better results from line merging. Reversing is only done when oneway
475 attribute allows it and the type has no direction. See
476 --line-types-with-direction for further details.
477
478 --line-types-with-direction=type[,type ...]
479 Use this option to tell mkgmap which line types should never be reversed.
480 If your TYP file renders certain line types with a direction even if the
481 way has no oneway attribute you must list those types here to prevent
482 reversing.
483 Example usage: --line-types-with-direction=0x26,0x10005,0x10006
484
485 --min-size-polygon=NUM
486 Removes all polygons smaller than NUM from the map. This reduces map size
487 and speeds up redrawing of maps. Recommended value is 8 to 15, default is
488 8.
489 See also polygon-size-limits.
490
491 --polygon-size-limits=resolution:value[,resolution:value...]
492 Allows you to specify different min-size-polygon values for each
493 resolution. Example:
494 --polygon-size-limits="24:12, 18:10, 16:8, 14:4, 12:2, 11:0"
495 If a resolution is not given, mkgmap uses the value for the next higher
496 one. For the given example, resolutions 19 to 24 will use value 12,
497 resolution 17 and 18 will use 10, and so on. Value 0 means to not apply the
498 size filter. Note that in resolution 24 the filter is not used. The
499 following options are equivalent:
500 --min-size-polygon=12
501 --polygon-size-limits=24:12
502 --polygon-size-limits=24:0,23:12
503 --polygon-size-limits=24:0,23:12,22:12,21:12,16:12
504
505 --simplify-lines=resolution:value[,resolution:value...]
506 Use this option to specify different values for the Douglas Peucker
507 algorithm depending on the resolution when it is applied to lines. It
508 overwrites the --reduce-point-density value. The syntax is similar to
509 --polygon-size-limits, but values are given in metres. This distance gets
510 shifted with lower zoom levels. Example:
511 --simplify-lines=23:2.6,22:4.2,21:5.4,20:6
512
513 --simplify-polygons=resolution:value[,resolution:value...]
514 Use this option to specify different values for the Douglas Peucker
515 algorithm depending on the resolution when it is applied to polygons. It
516 overwrites the --reduce-point-density-polygon value. The syntax is similar
517 to --simplify-lines.
518
519 === Hill Shading (DEM) options ===
520
521 Hill Shading is rendered by BaseCamp and GPS devices when the map includes
522 a Digital Elevation Model (DEM). Use the following options to add a DEM to
523 the map and control its characteristics. DEM creation requires files
524 containing height information for the area covered by the map, the so
525 called hgt files, which typically cover 1 degree latitude by 1 degree
526 longitude and are named by the coordinates of their bottom left corner
527 (e.g. N53E009). They contain height information in a grid of points.
528 Typical hgt files contain either 1 arc second or 3 arc second data. 3 arc
529 second files have 1201 x 1201 points, which means files contain 2 x 1201 x
530 1201 = 2,884,802 bytes. 1 arc second files have 3601 x 3601 points, with a
531 file size of 25,934,402 bytes. Other files are supported as long as the
532 formula sqrt(filesize/2) gives an integer value.
533
534 --dem=path[,path...]
535 The option expects a comma separated list of paths to directories or zip
536 files containing *.hgt files. Directories are searched for *.hgt files and
537 also for *.hgt.zip and *.zip files.
538 The list is searched in the given order, so if you want to use 1 arc second
539 files make sure that they are found first. There are different sources for
540 hgt files, some have so called voids which are areas without data. Those
541 should be avoided.
542
543 --dem-dists=number[,number...]
544 If given, the option specifies the resolution(s) for the DEM data. If not
545 given, mkgmap determines a single value based on the resolution of the hgt
546 files. For BaseCamp you only need one value; for GPS devices you need one
547 for each resolution given with the --levels option. The actual values are
548 the distance between two DEM points and should be a multiple or submultiple
549 of the distance between two points in the hgt file, that is 3314 for 1 arc
550 second and 9942 for 3 arc second. Higher distances mean lower resolution
551 and thus fewer bytes in the map. Reasonable values for the highest
552 resolution should not be much smaller than 50% hgt resolution, that is
553 somewhere between 1648 and 5520 for 1 arc second hgt input files (3312 is
554 often used), and 5520 to 9942 for 3 arc second hgt input files.
555 Example which should work with levels="0:24, 1:22, 2:20, 3:18":
556 --dem-dists=3312,13248,26512,53024
557 This was found in a Garmin Demo map for transalpin data created 2009.
558
559 --dem-interpolation=auto|bicubic|bilinear
560 Use this option to specify the method that is used to interpolate data from
561 hgt raster to the DEM raster. The value bicubic gives the highest precision
562 but is slower, bilinear is faster but less precise, it tends to smooth the
563 profile and thus also reduces DEM size compared to bicubic. The value auto
564 means that bicubic is used where is seems appropriate according to hgt
565 resolution and dem-dist value, else bilinear is used. The default is auto.
566
567 --dem-poly=filename
568 If given, the filename should point to a *.poly file in osmosis polygon
569 file format. The polygon described in the file is used to determine the
570 area for which DEM data should be added to the map. If not given, the DEM
571 data will cover the full tile area.
572
573 --overview-dem-dist=integer
574 If given, the option specifies the resolution(s) for the DEM data in the
575 overview map. If not given or 0, mkgmap will not add DEM to the overview
576 map. Reasonable values depend on the size of the area and the lowest
577 resolution used for the single tiles, good compromises are somewhere
578 between 55000 and 276160.
579
580 === Sea Processing options ===
581
582 If your map contains sea areas then you will need to use --generate-sea to
583 generate the sea areas from the OSM files or --precomp-sea to use separate
584 precompiled sea tiles.
585
586 --generate-sea[=VALUE[,...]]
587 Generate sea polygons. When this option is specified, the sea is generated
588 using a multipolygon unless the polygons value is specified. The coastline
589 data can be read from the input OSM files, separate files containing
590 coastline data if --coastlinefile is specified or precompiled sea data if
591 --precomp-sea is specified. The VALUEs are as follows:
592 multipolygon
593 generate the sea using a multipolygon. This is the default value.
594 polygons | no-mp
595 don't generate the sea using a multipolygon - instead, generate a
596 background sea polygon plus individual land polygons (see land-tag
597 value).
598 land-tag=TAG=VAL
599 tag to use for land polygons (default natural=land) created by the
600 polygons option. For these to be visible in the Garmin map, a suitable
601 land polygon type must be defined in the TYP file (suggested type is
602 0x010100 or 0x54), the polygon must have a higher drawing level than
603 the sea polygon type and the style file must link TAG=VAL to the land
604 polygon type defined in the TYP file.
605 no-sea-sectors
606 disable the generation of "sea sectors" when the coastline fails to
607 reach the tile's boundary. Under some conditions land sectors are
608 generated instead and these use land-tag.
609 extend-sea-sectors
610 Adds a point so coastline reaches the nearest tile boundary. This
611 implies no-sea-sectors.
612 close-gaps=NUM
613 close gaps in coastline that are less than this distance (metres)
614 floodblocker
615 enable the flood blocker that prevents a flooding of land by checking
616 if the sea polygons contain streets (works only with multipolygon
617 processing)
618 fbgap=NUM
619 flood blocker gap in metre (default 40) points that are closer to the
620 sea polygon do not block
621 fbthres=NUM
622 at least so many highway points must be contained in a sea polygon so
623 that it may be removed by the flood blocker (default 20)
624 fbratio=NUM
625 only sea polygons with a higher ratio (highway points x 100000 /
626 polygon size) are removed (default 0.5)
627 fbdebug
628 switches on the debugging of the flood blocker generates GPX files for
629 each polygon checked by the flood blocker
630 check
631 check whether the coastline data contains sea within sea or land within
632 land
633
634 --coastlinefile=filename[,filename...]
635 Defines a comma separated list of OSM or PBF format files that contain
636 coastline data to be used instead of extracting the data from the input
637 files. If you specify --coastlinefile you must also specify --generate-sea.
638
639 --precomp-sea=directory|zipfile
640 Defines the directory or a zip file that contains precompiled sea data. Sea
641 data in a zip file must be located in the zip file's root directory or in a
642 sub directory named sea. When this option is defined, natural=coastline
643 tags from the input OSM files are ignored, the --coastlinefile option is
644 ignored and the precompiled data is used instead. You can use the
645 multipolygon, polygon and land-tag values of the --generate-sea option in
646 conjunction with --precomp-sea to control the way the sea is built, but the
647 other --generate-sea values are not available. If --generate-sea is not
648 specified, the --precomp-sea option sets --generate-sea=multipolygon.
649
650 You can download procompiled sea data for the whole world from the mkgmap
651 download page at http://www.mkgmap.org.uk/download/mkgmap.html
652
653 If you want to build your own precompiled sea data, you will need to build a
654 copy of mkgmap from the source, with the optional PrecompSeaGenerator source
655 included. This generator uses ESRI shapefiles as its source data. It is not
656 included in the standard mkgmap build due to its dependencies on external
657 libraries.
658
659 === Diagnostic options ===
660
661 Messages produced by the diagnostic options are directed to stderr when no
662 logging configuration file is in use. When using a logging configuration file,
663 they are logged with custom level DIAGNOSTIC (1100).
664
665 --report-roundabout-issues[=all|loop|direction|overlap|junctions|flares[,...]]
666 Report on various types of roundabout issue:
667
668 * all - report on all the types of issue. This is the default if
669 --report-roundabout-issues is specified without a value.
670 * loop - check that each roundabout is formed from a single loop with no
671 forks or gaps
672 * direction - check the direction of travel around the roundabout, see also
673 --fix-roundabout-direction
674 * overlap - check that highways do not overlap the roundabout
675 * junctions - check that no more than one connecting highway joins at each
676 node
677 * flares - check that roundabout flare roads are one-way, are in the right
678 direction, and don't extend beyond the flare
679
680 --roundabout-flare-rules-config=filename
681 Provide a configuration file containing the rules to be used with the
682 --check-roundabouts=flares option in determining whether a pair of roads
683 joining a roundabout should be considered to be flares.
684
685 --report-routing-islands
686 Routing islands are small road networks which are not connected to other
687 roads. A typical case is a footway that is not connected to the main road
688 network, or a small set of ways on the inner courtyard of a large building.
689 These islands can cause problems if you try to calculate a route and the
690 GPS selects a point on the island as a start or end. It will fail to
691 calculate the route even if a major road is only a few steps away. If this
692 option is specified, then mkgmap will report these islands.
693 See also --max-routing-island-len.
694
695 --report-similar-arcs
696 Issue a warning when more than one arc connects two nodes and the ways that
697 the arcs are derived from contain identical points.
698
699 --report-dead-ends[=LEVEL]
700 Set the dead end road warning level. The value of LEVEL determines those
701 roads to report:
702 * 0 = none (the default)
703 * 1 = report on connected one-way roads that go nowhere (default if no
704 LEVEL specified)
705 * 2 = also report on individual one-way roads that go nowhere.
706
707 --dead-ends[=key[=value]][,key[=value]...]
708 Specify a list of keys and optional values that should be considered to be
709 valid dead ends when found on the node at the end of a way. Ways with nodes
710 matching any of the items in the list will not be reported as dead ends. If
711 no value or * is specified for value then presence of the key alone will
712 cause the dead end check to be skipped. The default is
713 --dead-ends=fixme,FIXME.
714
715 === POI options ===
716
717 --add-pois-to-lines[=all|start|end|mid|other]
718 Generate nodes that may be used by the points file to produce POIs at
719 various positions of non-closed lines. The option expects a comma separated
720 list that specifies the positions at which a node should be generated. The
721 default is all. If the inner or all values are used, a lot of points are
722 likely to be generated and these are likely to need filtering in the points
723 file. Each node is tagged with the same tags as the line plus mkgmap
724 generated tags mkgmap:line2poi=true and mkgmap:line2poitype with one of the
725 following values:
726 * start - The first point of the line
727 * end - The last point of the line
728 * inner - Each point of the line except the first and the last
729 * mid - An extra point added by mkgmap at the middle of the line
730
731 --add-pois-to-areas
732 For each polygon and multipolygon, generate a node that may be used by the
733 points file to produce a POI. The nodes are created after the relation
734 style but before the other styles are applied. Each node is tagged with the
735 same tags of the area/multipolygon, plus mkgmap generated tag
736 mkgmap:area2poi=true. Artificial polygons created by multipolyon processing
737 are not used. The nodes are created at the following positions:
738 polygons: the first rule that applies of:
739 * the first node tagged with a tag defined by the
740 --pois-to-areas-placement option
741 * the centre point
742 multipolygons: the first rule that applies of:
743 * the node with role=label
744 * the centre point of the biggest area
745
746 --pois-to-areas-placement=tag=value[;tag=value...]
747 A node is placed at the first node of the polygon tagged with the first
748 tag/value pair. If none of the nodes are tagged with the first tag-value
749 pair the first node tagged with the second tag-value pair is used and so
750 on. If none of the tag-value pairs matches or no tag-value pairs are
751 supplied, the centre of the polygon is used. It is possible to define
752 wildcards for tag values like entrance=*.
753
754 Default: entrance=main;entrance=yes;building=entrance
755
756 --make-poi-index
757 Generate a POI index in each map tile. Probably not used by modern devices,
758 but still supported.
759
760 --poi-address
761 Enable address / phone information to POIs. Address info is read according
762 to the "Karlsruhe" tagging schema. Automatic filling of missing information
763 could be enabled using the --location-autofill option. Default is enabled,
764 use --no-poi-address to disable.
765
766 --nearby-poi-rules=type[-type][/all|named|unnamed]:distance[:delete-poi|delete-name][,...]
767 Defines a set of rules to follow when a POI is near to another of the same
768 type and label. Each rule consists of three parts separated by colons. The
769 first two parts must be provided; the last part can be defaulted.
770
771 The first part of the rule is a Garmin POI type code or range of type
772 codes, with an optional suffix; it determines when the rule is triggered. A
773 type code may be specified in decimal or hexadecimal (e.g. 0x2c0b). A rule
774 is triggered when processing a POI if the type code of the POI matches the
775 rule type or falls within the range of type codes, providing there is also
776 a match in the POI name and the first part suffix. If the suffix is '/all'
777 (the default) then the match is only made on the type. If the suffix is
778 '/named' then the rule is only triggered if the POI has a name. If the
779 suffix is '/unnamed' then the rule is only triggered if the POI has no
780 name. A wildcard of an asterisk character may be used to match any type
781 code. The wildcard may also be combined with a suffix to allow separate
782 processing of named and unnamed POIs.
783
784 The second part of the rule is the distance in metres which an already
785 processed POI must be within for it to be considered to be nearby and hence
786 trigger the action part of the rule.
787
788 The third part of the rule is the action part and provides two options:
789
790 delete-poi - the POIS are considered to be duplicates and the duplicate
791 is deleted. This is the default.
792 delete-name - the POIS are not duplicates, but only a single name needs
793 to be displayed.
794
795 Wildcard rules are only applied if no other rule is applicable.
796
797 For example:
798 --nearby-poi-rules=*/named:10,*/unnamed:25,0x2f17-0x2f1f:30
799
800 This has the following effect:
801 If no other rule applies, a POI with the same name and type and within 10m
802 of one already processed will be deleted.
803 If no other rule applies, a POI having no name and of the same type and
804 within 25m of one already processed will be deleted.
805 A POI of any type between 0x2f17 and 0x2f1f that is within 30m of another
806 POI with the same type will be deleted.
807
808 If you have a lot of rules, the --nearby-poi-rules-config option is likely
809 to be easier to use.
810
811 Note: a POI that matches another in type, name and exact location is always
812 considered a duplicate and deleted.
813
814 --nearby-poi-rules-config=filename
815 Allows you to specify the nearby POI rules as described in the
816 --nearby-poi-rules option in a configuration file. The format of the rules
817 is the same as in --nearby-poi-rules, except that each rule is specified on
818 a separate line, rather than separated by commas. This format makes it
819 easier to view and maintain the rules when you have a lot of them. If you
820 just have one or two rules, it is simpler to use the --nearby-poi-rules
821 option.
822
823 === Miscellaneous options ===
824
825 --max-jobs[=integer]
826 Specify the number of threads to be used for concurrent processing.
827 Increasing max-jobs will reduce the execution time, providing sufficient
828 memory is available and the value is not greater than the number of cores
829 in the CPU. If no value is specified, the limit is set to the number of CPU
830 cores. The default is for the limit to be automatically set to a reasonable
831 value based on the amount of memory allocated to the Java runtime and the
832 amount used in processing the first tile.
833
834 --keep-going
835 Don't quit whole application if an exception occurs while processing a map
836 - continue to process the other maps.
837
838 --block-size=integer
839 Changes the block size that is used in the generated map. This option is
840 not usually needed, but sometimes an error message will ask you to try a
841 value for this option.
842
843 --net
844 Tells mkgmap to write NET data, which is needed for address search and
845 routing. Use this option if you want address search, but do not need a map
846 that supports routing or house number search.
847
848 --route
849 Tells mkgmap to write NET and NOD data, which are needed in maps that
850 support routing. If you specify this option, you do not need to specify
851 --net and --no-net is ignored.
852
853 --add-boundary-nodes-at-admin-boundaries=NUM
854 This option controls how mkgmap calculates special routing nodes which are
855 needed by Garmin software to allow routing between different map tiles.
856 These nodes are written to section 3 and 4 in the NOD file. When a road
857 crosses the tile boundary (bbox), the road is split at this point and such
858 a special node is written. This allows routing between one set of tiles
859 produced by splitter.jar. However, if you create a map from different sets
860 of tiles, those tiles are likely to overlap. For the overlapping tiles,
861 none of the entries in NOD3 match and thus routing across tile border
862 doesn't work when the route is not fully covered by one of the tiles. The
863 option tells mkgmap to add special nodes wherever a road touches or crosses
864 an administrative boundary. The NUM parameter specifies a filter for the
865 admin_level. Boundaries with a higher admin_level value are ignored. The
866 default value is 2 (country borders). Another reasonable value might be 4.
867 A value less or equal to 0 tells mkgmap to ignore intersections at
868 administrative boundaries.
869
870 --drive-on=left|right|detect|detect,left|detect,right
871 Explicitly specify which side of the road vehicles are expected to drive
872 on. If the first option is detect, the program tries to find out the proper
873 flag. If that detection fails, the second value is used (or right if none
874 is given). With OSM data as input, the detection tries to find out the
875 country each road is in and compares the number of drive-on-left roads with
876 the rest. Use the --bounds option to make sure that the detection finds the
877 correct country.
878
879 --ignore-turn-restrictions
880 When reading OSM files, ignore any "restriction" relations.
881
882 --ignore-osm-bounds
883 When reading OSM files, ignore any "bounds" elements. With this option
884 selected generate-sea sometimes works better, but routing across tiles will
885 not work.
886
887 --preserve-element-order
888 Process the map elements (nodes, ways, relations) in the order in which
889 they appear in the OSM input. Without this option, the order in which the
890 elements are processed is not defined.
891
892 --cycle-map
893 Tells mkgmap that the map is for cyclists. This assumes that different
894 vehicles are different kinds of bicycles, e.g. a way with mkgmap:car=yes
895 and mkgmap:bicycle=no may be a road that is good for racing bikes, but not
896 for other cyclists. This allows the optimisation of sharp angles at
897 junctions of those roads. Don't use with the default style as that is a
898 general style!
899
900 --nsis
901 Write a .nsi file that can be used with the Nullsoft Scriptable Install
902 System (NSIS) to create a Windows Installer for using the map in BaseCamp.
903 It looks for an installer template and license file template in the
904 resources and resources\installer folders. Note that it does not use the
905 license file specified in --license-file.
906
907 --make-opposite-cycleways
908 Some one-way streets allow bicycle traffic in the reverse direction and
909 this option makes a way with the same points as the original that allows
910 bicycle traffic (in both directions).
911
912 --link-pois-to-ways
913 This option may copy some specific attributes of a POI to a small part of
914 the way the POI is located on. This can be used to let barriers block a way
915 or to lower the calculated speed around traffic signals. POIs with the tags
916 highway=* (e.g. highway=traffic_signals) or barrier=* (e.g.
917 barrier=cycle_barrier) are supported. The style developer must add at least
918 one of the access tags (mkgmap:foot, mkgmap:car etc.), mkgmap:road-speed
919 and/or mkgmap:road-class to the POI. The access tags are ignored if they
920 have no effect for the way, else a route restriction is added at the POI so
921 that only allowed vehicles are routed through it. The tags
922 mkgmap:road-speed and/or mkgmap:road-class are applied to a small part of
923 the way around the POI, typically to the next junction or a length of ~25m.
924 The tags are ignored for pedestrian-only ways.
925
926 --process-destination
927 Splits all motorway_link, trunk_link, primary_link, secondary_link, and
928 tertiary_link ways tagged with destination into two or three parts where
929 the second part is additionally tagged with mkgmap:dest_hint=*. The code
930 checks for the tags destination, destination:lanes, destination:street and
931 some variants with :forward/:backward like destination:forward or
932 destination:lanes:backward. If a value for destination is found, the
933 special tag mkgmap:dest_hint is set to it and the way is split. This
934 happens before the style rules are processed. This allows to use any
935 routable Garmin type (except 0x08 and 0x09) for that part so that the
936 Garmin device tells the name of this part as hint which destination to
937 follow.
938 See also --process-exits.
939
940 --process-exits
941 Usual Garmin devices do not tell the name of the exit on motorways while
942 routing with mkgmap created maps. This option splits each motorway_link,
943 trunk_link, primary_link, secondary_link, and tertiary_link way into three
944 parts. All parts are tagged with the original tags of the link.
945 Additionally the middle part is tagged with the following tags:
946
947 mkgmap:exit_hint=true
948 mkgmap:exit_hint_ref=<ref tag value of the exit>
949 mkgmap:exit_hint_name=<name tag value of the exit>
950 mkgmap:exit_hint_exit_to=<exit_to tag value of the exit>
951
952 Adding a rule checking the mkgmap:exit_hint=true makes it possible to use
953 any routable Garmin type (except 0x08 and 0x09) for the middle part so that
954 the Garmin device tells the name of this middle part as hint where to leave
955 the motorway/trunk. The first part must have type 0x08 or 0x09 so that
956 Garmin uses the hint.
957
958 --delete-tags-file=filename
959 Names a file that should contain one or more lines of the form TAG=VALUE or
960 TAG=*. Blank lines and lines that start with a # or ; are ignored. All
961 tag/value pairs in the OSM input are compared with these patterns and those
962 that match are deleted.
963
964 --ignore-fixme-values
965 Ignore all tags for which the value matches the regular expression pattern
966 "(?i)fix[ _]?+me".
967
968 --tdbfile
969 Write files that are essential to running with BaseCamp; a .tdb file and an
970 overview map. The options --nsis and --gmapi imply --tdbfile.
971
972 --show-profiles=1
973 Sets a flag in the tdb file. The meaning depends on the availability of DEM
974 data (see "Hill Shading (DEM) options").
975 Without DEM data the flag enables profile calculation in BaseCamp based on
976 information from contour lines.
977 If DEM data is available the profile is calculated with that information
978 and the flag only changes the status line to show the height when you hover
979 over an area with valid DEM data.
980 The default is show-profiles=0.
981
982 --transparent
983 Make the map transparent, so that if two maps covering the same area are
984 loaded, you can see through this map to see details from the other map too.
985 Typically used for maps containing just contour lines. See --draw-priority
986 as well.
987
988 --draw-priority=integer
989 When two maps cover the same area and both are enabled in the device, this
990 option controls the order in which they are drawn in and therefore which
991 map is on top. Higher priorities are drawn "on top" of lower priorities.
992 The map drawn on top must be transparent for the one underneath to be seen.
993 The default value is 25.
994
995 --custom
996 Write a different TRE header. With this option, mkgmap writes the bytes
997 0x170401 instead of the default 0x110301 at offset 43. Useful for marine
998 maps.
999
1000 --hide-gmapsupp-on-pc
1001 Set a bit in the gmapsupp.img that tells PC software that the file is
1002 already installed on the PC and therefore there is no need to read it from
1003 the device.
1004
1005 --verbose
1006 Makes some operations more verbose. Mostly used with --list-styles.
1007
1008 --order-by-decreasing-area
1009 Puts area/polygons into the map in decreasing size order, so that smaller
1010 features are rendered over larger ones (assuming the draw order is equal).
1011 The tag mkgmap:drawLevel can be used to override the natural area of a
1012 polygon, so forcing changes to the rendering order.
1013
1014 --max-routing-island-len=integer
1015 Routing islands are small road networks which are not connected to other
1016 roads. A typical case is a footway that is not connected to the main road
1017 network, or a small set of ways on the inner courtyard of a large building.
1018 These islands can cause problems if you try to calculate a route and the
1019 GPS selects a point on the island as a start or end. It will fail to
1020 calculate the route even if a major road is only a few steps away. If a
1021 positive value is specified, then mkgmap will mark islands with a total
1022 length less than the specified value in metres as not routable. Reasonable
1023 values are 500 or higher. The default is to not to mark any islands as
1024 unroutable. If any of the roads forming the island touches a tile boundary
1025 or a country border the island is ignored, as it may be connected to other
1026 roads in a different tile.
1027 See also options --add-boundary-nodes-at-admin-boundaries and
1028 --report-routing-islands.
1029 This option seems to cause routing problems in BaseCamp.
1030
1031 --fix-roundabout-direction
1032 Reverse the direction of travel around roundabouts that do not have the
1033 expected direction (clockwise when vehicles drive on the left). See also
1034 --report-roundabout-issues=direction.
1035
1036 === Deprecated and Obsolete Options ===
1037
1038 --check-roundabouts
1039 Deprecated; use --report-roundabout-issues and/or
1040 --fix-roundabout-direction instead. Check that roundabouts have the
1041 expected direction (clockwise when vehicles drive on the left). Roundabouts
1042 that are complete loops and have the wrong direction are reversed. Also
1043 checks that the roundabouts do not fork or overlap other roundabouts and
1044 that no more than one connecting highway joins at each node.
1045
1046 --check-roundabout-flares
1047 Deprecated; use --report-roundabout-issues=flares instead. Check that
1048 roundabout flare roads point in the correct direction, are one-way and
1049 don't extend too far.
1050
1051 --max-flare-length-ratio=NUM
1052 Deprecated; use --roundabout-flare-rules-config instead. When checking
1053 roundabout flares, ignore roads whose length is greater than NUM (an
1054 integer) times the distance between the nodes on the roundabout that the
1055 flare roads connect to.
1056
1057 --check-routing-island-len=integer
1058 Deprecated; use --report-routing-islands and --max-routing-island-len
1059 instead. Translated to --report-routing-islands if info level logging is
1060 enabled, plus --max-routing-island-len=integer.
1061
1062 --drive-on-left
1063 --drive-on-right
1064 Deprecated; use --drive-on instead. The options are translated to
1065 --drive-on=left|right.
1066
1067 --make-all-cycleways
1068 Deprecated; use --make-opposite-cycleways instead. Former meaning: Turn on
1069 all of the options that make cycleways.
1070
1071 --charset=name
1072 Obsolete; use --code-page instead.
1073
1074 --map-features=filename
1075 Obsolete; use --style-file instead.
1076
1077 --ignore-maxspeeds
1078 Obsolete; former usage: When reading OSM files, ignore any "maxspeed" tags.
1079
1080 --ignore-builtin-relations
1081 Obsolete; former usage: When reading OSM files, skip the built-in
1082 processing of relations. This speeds up the processing non-routable map
1083 layers that do not contain multipolygons. This implies
1084 --ignore-turn-restrictions.
1085
1086 --road-name-pois[=GarminCode]
1087 Obsolete; former usage: Generate a POI for each named road. By default, the
1088 POIs' Garmin type code is 0x640a. If desired, a different type code can be
1089 specified with this option. This is a workaround for not being able to
1090 search for roads. 0x2f15: a blue dot in the middle of the road, and if you
1091 select, or 'hover' over it, the street name appears.
1092
1093 --make-cycleways
1094 Obsolete; former meaning: Some streets have a separate cycleway track/lane
1095 just for bicycle traffic and this option makes a way with the same points
1096 as the original that allows bicycle traffic. Also, bicycle traffic is
1097 prohibited from using the original way (unless that way's bicycle access
1098 has been defined).
1099
1100 --remove-short-arcs[=MinLength]
1101 Now ignored, former usage: Merge nodes to remove short arcs that can cause
1102 routing problems. If MinLength is specified (in metres), arcs shorter than
1103 that length will be removed. If a length is not specified, only zero-length
1104 arcs will be removed.
1105
1106 --adjust-turn-headings[=BITMASK]
1107 Now ignored, former usage: Where possible, ensure that turns off to side
1108 roads change heading sufficiently so that the GPS believes that a turn is
1109 required rather than a fork. This also avoids spurious instructions to
1110 "keep right/left" when the road doesn't actually fork.
1111
1112 Optional BITMASK (default value 3) allows you to specify which adjustments
1113 are to be made (where necessary):
1114 1 = increase angle between side road and outgoing main road
1115 2 = increase angle between side road and incoming main road