Codebase list mkgmap / 3414745
Merge tag 'upstream/0.0.0+svn3660' Upstream version 0.0.0+svn3660 Bas Couwenberg 8 years ago
9 changed file(s) with 219 addition(s) and 198 deletion(s). Raw diff Collapse all Expand all
1212 : Output program version to stderr.
1313
1414 === File options ===
15
1516 ;--input-file=filename
1617 : Read input data from the give file. This option (or just a
1718 filename) may be given more than once.
3031 line can be used, however you omit the leading '--'. The short
3132 option names with a single '-' cannot be used, simply use the
3233 long name instead.
33
34 <p>
3435 ;--output-dir=filename
3536 : The directory in which all output files are written. It defaults
3637 to the current working directory, i.e. the directory the command is
3738 executed from.
38
39 <p>
3940 ;-n name
4041 ;--mapname=name
4142 : Set the name of the map. Garmin maps are named by 8 digit
4243 numbersList. The default is 63240001. It is best to use a different
4344 name if you are going to be making a map for others to use so
4445 that it is unique and does not clash with others.
45
46 <p>
4647 ;--description=text
4748 : Sets the descriptive text for the map. This may be displayed in
4849 QLandkarte, MapSource or on a GPS, where it is normally shown
5152 and use -c template.args, then that file may contain a
5253 "description" that will override this option. Use "--description" in
5354 splitter.jar to change the description in the template.args file.
54
55 <p>
5556 ;--country-name=name
5657 : Sets the map's country name. The default is "COUNTRY".
57
58 <p>
5859 ;--country-abbr=abbreviation
5960 : Sets the map's abbreviated country name. The default is "ABC".
60
61 <p>
6162 ;--region-name=name
6263 : Sets the map's region name. By default, the map has no region name.
63
64 <p>
6465 ;--region-abbr=abbreviation
6566 : Sets the map's abbreviated region name. By default, the map has
6667 no abbreviated region name.
67
68 <p>
6869 === Label options ===
6970
7071 ;--latin1
7172 : This is equivalent to --code-page=1252.
72
73 <p>
7374 ;--unicode
74 : This is equivalent to --code-page=65001. Note that only newer devices support Unicode.
75
75 : This is equivalent to --code-page=65001. Note that only newer devices support Unicode.
76 <p>
7677 ;--code-page=number
7778 : This option enables the use of international characters. Only 8 bit
7879 character sets are supported and so you have to specify which code page
7980 you want to use.
80
81 : It is entirely dependent on the device firmware which code pages are
81 <p>
82 It is entirely dependent on the device firmware which code pages are
8283 supported.
83
84 <p>
8485 ;--charset=name
8586 : This option is obsolete. Change the character set with the --code-page
8687 option.
87
88 <p>
8889 ;--lower-case
8990 : Allow labels to contain lower case letters. Note that most or all
9091 Garmin devices are not able to display lower case letters at an angle
9192 so this option is not generally useful.
92
93 <p>
9394 === Address search options ===
9495 ;--index
9596 : Generate a global address search index. If the --gmapsupp option is
9697 also given, then the index is generated within the resulting
9798 gmapsupp.img file so that address search will work on a GPS
9899 device.
99
100 : If instead the --tdbfile option is given then the index consists
100 <p>
101 If instead the --tdbfile option is given then the index consists
101102 of two files named osmmap.mdx and osmmap_mdr.img which can be used
102103 with mapsource. (For compatibility, you do not need the tdbfile
103104 option if gmapsupp is not given).
104
105 : If both the --gmapsupp and --tdbfile options are given alongside
105 <p>
106 If both the --gmapsupp and --tdbfile options are given alongside
106107 the --index option, then both indexes will be created. Note that
107108 this will require roughly twice as much memory.
108
109 : The --overview-mapname option can be used to change these names. If
109 <p>
110 The --overview-mapname option can be used to change these names. If
110111 the mapset is sent to the device from MapSource, it will enable
111112 find by name and address search on the GPS.
112113
113114 : The address fields are assigned by special mkgmap address
114115 tags using the style file:
116
115117 mkgmap:country
116118 mkgmap:region
117119 mkgmap:city
125127 same code page and sorting options (e.g. --code-page, --latin1) must
126128 be used as were used to compile the individual map tiles.
127129
130 ;--x-split-name-index
131 : A temporary option to enable indexing each part of a street name separately.
132 So for example if the street is "Aleksandra Gryglewskiego" then you will be able to
133 search for it as both "Aleksandra" and "Gryglewskiego". It will also increase the
134 size of the index. Useful in countries where searching for the first word in name
135 is not the right thing to do.
136 <p>
137 Note that this option is still experimental and there may be problems. If you find
138 any let us know!
139 <p>
128140 ;--bounds=directory|zipfile
129141 : A directory or a zip file containing the preprocessed bounds files.
130142 Bounds files in a zip file must be located in the zip file's root directory.
131
132 : The preprocessed boundaries are used to add special tags to all elements
143 <p>
144 The preprocessed boundaries are used to add special tags to all elements
133145 (points, lines and polygons) containing the elements location information.
134146 The style file can be used to assign the address tags mkgmap:country,
135147 mkgmap:region etc. using these values.
136
137 : The following special tags are added:
148 <p>
149 The following special tags are added:
150 <pre>
138151 mkgmap:admin_level2 : Name of the admin_level=2 boundary
139152 mkgmap:admin_level3 : Name of the admin_level=3 boundary
140153 ..
141154 mkgmap:admin_level11
142155 mkgmap:postcode : the postal_code value
143
144 : Preprocessed bounds can be created with the following command:
145 java -cp mkgmap.jar
146 uk.me.parabola.mkgmap.reader.osm.boundary.BoundaryPreprocessor
147 <inputfile> <boundsdir>
148
149 : The input file must contain the boundaries that should be preprocessed.
150 It can have OSM, PBF or O5M fileformat. It is recommended that it
156 </pre>
157 Preprocessed bounds can be created with the following command:
158 <pre>
159 java -cp mkgmap.jar
160 uk.me.parabola.mkgmap.reader.osm.boundary.BoundaryPreprocessor
161 <inputfile> <boundsdir>
162 </pre>
163 The input file must contain the boundaries that should be preprocessed.
164 It can have OSM, PBF or O5M file format. It is recommended that it
151165 contains the boundary data only to avoid very high memory usage.
152166 The boundsdir gives the directory where the processed files are stored.
153167 This directory can be used as --bounds parameter with mkgmap.
154
168 <p>
155169 ;--location-autofill=[option1,[option2]]
156170 : Controls how the address fields for country, region, city and zip info
157171 are gathered automatically if the fields are not set by using the special
158172 mkgmap address tags (e.g. mkgmap:city - see option index).
159173 Warning: automatic assignment of address fields is somehow a best guess.
160174 :;is_in
161 ::The is_in tag is analyzed for country and region information.
162
175 :: The is_in tag is analyzed for country and region information.
176 <p>
163177 :;nearest
164 ::The city/hamlet points that are closest to the element are used
178 :: The city/hamlet points that are closest to the element are used
165179 to assign the missing address fields. Beware that cities located
166180 in the same tile are used only. So the results close to a tile
167181 border have less quality.
168182
169
170183 ;--housenumbers
171 : Enables house number search for OSM input files.
172
173 : All nodes and polygons having addr:housenumber set are matched
184 : Enables house number search for OSM input files.
185 All nodes and polygons having addr:housenumber set are matched
174186 to streets. A match between a house number element and a street is created if
175187 the street is located within a radius of 150m and the addr:street tag value of
176 the house number element equals the mgkmap:street tag value of the street
177 or the addr:street tag is missing and the number is plausible for the street.
188 the house number element equals the mgkmap:street tag value of the street.
178189 The mkgmap:street tag must be added to the street in the style file.
179190 For optimal results, the tags mkgmap:city and mkgmap:postal_code should be
180191 set for the housenumber element. If a street connects two or more cities
184195 :: Node - addr:street=Main Street addr:housenumber=2
185196 :: Way 1 - name=Main Street
186197 :: Way 2 - name=Main Street, mkgmap:street=Main Street
187 :: Way 3 - mkgmap:street=Mainstreet
198 :: Way 3 - mkgmap:street=Mainstreet
188199 :: Way 4 - name=Main Street [A504]
189 : The node 1 matches to Way 2. It has mkgmap:street set with a value equal to
190 the addr:street tag value of the house number node.
191 : If the street is not given with addr:housenumber, mkgmap uses heuristics
192 to find the best match.
200 : The node matches to Way 2. It has mkgmap:street set with a value equal to
201 the addr:street tag value of the house number node.
202 <p>
203 If the street is not given with addr:housenumber, mkgmap uses heuristics
204 to find the best match.
193205
194206 === Overview map options ===
195207 ;--overview-mapname=name
196208 : If --tdbfile is enabled, this gives the name of the overview
197209 .img and .tdb files. The default map name is osmmap.
198
210 <p>
199211 ;--overview-mapnumber=8 digit number
200212 : If --tdbfile is enabled, this gives the internal 8 digit
201213 number used in the overview map and tdb file. The default
202214 number is 63240000.
203
215 <p>
204216 ;--overview-levels
205217 : like levels, specifies additional levels that are to be written to the
206218 overview map. Counting of the levels should continue. Up to 8 additional
207219 levels may be specified, but the lowest usable resolution with MapSource
208220 seems to be 11. The hard coded default is empty.
209
221 <p>
210222 ;--remove-ovm-work-files
211223 : If overview-levels is used, mkgmap creates one additional file
212224 with the prefix ovm_ for each map (*.img) file.
213225 These files are used to create the overview map.
214226 With option --remove-ovm-work-files=true the files are removed
215227 after the overview map was created. The default is to keep the files.
216
228 <p>
217229 === Style options ===
218230 ;--style-file=file
219231 : Specify an external file to obtain the style from. "file" can
221233 (see resources/styles/default for an example). The directory
222234 path must be absolute or relative to the current working
223235 directory when mkgmap is invoked.
224
225 : The file can be a zip file containing the files instead of a
236 <p>
237 The file can be a zip file containing the files instead of a
226238 directory.
227
228 : The files can be at the top level or contained in a folder within
239 <p>
240 The files can be at the top level or contained in a folder within
229241 the zip file. If the zip file contains more than one top level
230242 folder then each folder is the name of a style that can be selected
231243 with the --style option.
232
233 : The argument can also be a URL that specifies the location of a
244 <p>
245 The argument can also be a URL that specifies the location of a
234246 style file.
235
247 <p>
236248 ;--style=name
237249 : Specify a style name. Must be used if --style-file points to a
238250 directory or zip file containing multiple styles. If --style-file
239251 is not used, it selects one of the built-in styles.
240
252 <p>
241253 ;--list-styles
242254 : List the available styles. If this option is preceded by a style-file
243255 option then it lists the styles available within that file.
244
256 <p>
245257 ;--check-styles
246258 : Perform some checks on the available styles. If this option is
247259 preceded by a style-file option then it checks the styles
248260 available within that file. If it is also preceded by the style
249261 option it will only check that style.
250
262 <p>
251263 ;--levels=levels code
252264 : Change the way that the levels on the map correspond to the zoom
253265 levels in the device. See customisation help. The default is:
254266 "0:24, 1:22, 2:20, 3:18, 4:16", although each style can have
255267 its own default. Up to 8 levels may be specified.
256
268 <p>
257269 ;--name-tag-list
258270 : Get the tag that will be used to supply the name. Useful for
259271 language variations. You can supply a list and the first one
260272 will be used. e.g. --name-tag-list=name:en,int_name,name
261
273 <p>
262274 ;--map-features=file
263275 : This option is ignored; use the --style-file option instead.
264
265 === Product description options ===
276 <p>
277 ===Product description options===
266278
267279 ;--family-id
268280 : This is an integer that identifies a family of products.
269281 Range: [1..9999]
270282 Mkgmap default: 6324
271
283 <p>
272284 ;--family-name
273285 : If you build several maps, this option describes the
274286 family name of all of your maps. Garmin will display this
275287 in the map selection screen.
276
277 : Example: --family-name="OpenStreetmap mkgmap XL 2019"
278
288 <p>
289 Example: --family-name="OpenStreetmap mkgmap XL 2019"
290 <p>
279291 ;--product-id
280292 : This is an integer that identifies a product within a family.
281293 It is often just 1, which is the default.
282
294 <p>
283295 ;--product-version
284296 : The version of the product. Default value is 1.
285
297 <p>
286298 ;--series-name
287299 : This name will be displayed in MapSource in the map selection
288300 drop-down. The default is "OSM map".
289
301 <p>
290302 ;--area-name
291303 : Area name is displayed on Garmin units (or at least on eTrex) as the second
292304 part of the mapname in the list of the individual maps.
293
305 <p>
294306 ;--copyright-message=note
295307 : Specify a copyright message for files that do not contain one.
296
308 <p>
297309 ;--copyright-file=file
298310 : Specify copyright messages from a file.
299311 Note that the first copyright message is not displayed on a device, but is
300312 shown in BaseCamp. The copyright file must include at least two lines.
301
313 <p>
302314 ;--license-file=file
303315 : Specify a file which content will be added as license.
304316 All entries of all maps will be merged in the overview map.
305
317 <p>
306318 === Optimization options ===
307319
308320 ;--reduce-point-density=NUM
312324 This distance gets shifted with lower zoom levels.
313325 Recommended setting is 4, this should lead to only small differences
314326 (Default is 2.6, which should lead to invisible changes)
315
327 <p>
316328 ;--reduce-point-density-polygon=NUM
317329 : Allows to set the maximal allowed error distance for the DP algorithm
318330 to be applied against polygons. Recommended setting is 8.
319
331 <p>
320332 ;--merge-lines
321333 : Try to merge lines. This helps the simplify filter to straighten out
322334 longer chunks at lower zoom levels. Decreases file size more.
323335 Increases paint speed at low zoom levels.
324336 Default is enabled, use --no-merge-lines to disable.
325
337 <p>
326338 ;--min-size-polygon=NUM
327339 : Removes all polygons smaller than NUM from the map.
328340 This reduces map size and speeds up redrawing of maps.
329341 Recommended value is 8 to 15, default is 8.
330342 See also polygon-size-limits.
331
343 <p>
332344 ;--polygon-size-limits=limits code
333345 : Allows to specify different min-size-polygon values for each resolution.
334346 Sample:
338350 resolution 17 and 18 will use 10, and so on.
339351 Value 0 means to skip the size filter.
340352 Note that in resolution 24 the filter is not used.
341
353 <p>
342354 === Miscellaneous options ===
343355
344356 ;--max-jobs[=number]
347359 is set equal to the number of CPU cores. If this option is not
348360 given at all, the limit is 1 (i.e., the maps are processed
349361 sequentially).
350
362 <p>
351363 ;--keep-going
352364 : Don't quit whole application if an exception occurs while
353365 processing a map - continue to process the other maps.
354
366 <p>
355367 ;--block-size=number
356368 : Changes the block size that is used in the generated map. This
357369 option is not usually needed, but sometimes an error message
358370 will ask you to try a value for this option.
359
371 <p>
360372 ;--net
361373 : Obsolete, use --route instead.
362
374 <p>
363375 ;--route
364376 : Create maps that support routing.
365
377 <p>
366378 ;--drive-on=left|right|detect|detect,left|detect,right
367379 : Explicitly specify which side of the road vehicles are
368380 expected to drive on.
374386 of drive-on-left roads with the rest.
375387 Use the --bounds option to make sure that the detection
376388 finds the correct country.
377
389 <p>
378390 ;--drive-on-left
379391 ;--drive-on-right
380392 : Deprecated: Use drive-on instead.
381393 The options are translated to drive-on=left|right.
382
394 <p>
383395 ;--check-roundabouts
384396 : Check that roundabouts have the expected direction (clockwise
385397 when vehicles drive on the left). Roundabouts that are complete
386398 loops and have the wrong direction are reversed. Also checks
387399 that the roundabouts do not fork or overlap other roundabouts.
388
400 <p>
389401 ;--check-roundabout-flares
390402 : Sanity check roundabout flare roads - warn if they don't point
391403 in the correct direction or if they are not one-way or if they
392404 extend too far.
393
405 <p>
394406 ;--max-flare-length-ratio=NUM
395407 : When checking flare roads, ignore roads whose length is
396408 greater than NUM (an integer) times the distance between the
399411 number of legitimate roads that are flagged as flare road
400412 problems. Default value is 0 (disabled) because it's not a
401413 completely reliable heuristic.
402
414 <p>
403415 ;--ignore-maxspeeds
404 : Now ignored, former usage:
416 : Now ignored, former usage:
405417 When reading OSM files, ignore any "maxspeed" tags.
406
418 <p>
407419 ;--ignore-builtin-relations
408 : Now ignored, former usage:
420 : Now ignored, former usage:
409421 When reading OSM files, skip the built-in processing of
410422 relations. This speeds up the processing non-routable map
411423 layers that do not contain multipolygons. This implies
412424 --ignore-turn-restrictions.
413
425 <p>
414426 ;--ignore-turn-restrictions
415427 : When reading OSM files, ignore any "restriction" relations.
416
428 <p>
417429 ;--ignore-osm-bounds
418430 : When reading OSM files, ignore any "bounds" elements.
419431 With this option selected generate-sea sometimes works better,
420432 but routing across tiles will not work.
421
433 <p>
422434 ;--preserve-element-order
423 : Process the map elements (nodes, ways, relations) in the order
435 : Process the map elements (nodes, ways, relations) in the order
424436 in which they appear in the OSM input. Without this option,
425437 the order in which the elements are processed is not defined.
426
438 <p>
427439 ;--remove-short-arcs[=MinLength]
428 : now ignored, former explanation:
440 : Now ignored, former usage:
429441 Merge nodes to remove short arcs that can cause routing
430442 problems. If MinLength is specified (in metres), arcs shorter
431443 than that length will be removed. If a length is not
432444 specified, only zero-length arcs will be removed.
433
434
445 <p>
435446 ;--adjust-turn-headings[=BITMASK]
436 : now ignored, former explanation:
447 : Now ignored, former usage:
437448 Where possible, ensure that turns off to side roads change
438449 heading sufficiently so that the GPS believes that a turn is
439450 required rather than a fork. This also avoids spurious
440451 instructions to "keep right/left" when the road doesn't
441452 actually fork.
442
443 : Optional BITMASK (default value 3) allows you to specify which
453 <p>
454 Optional BITMASK (default value 3) allows you to specify which
444455 adjustments are to be made (where necessary):
456 <p>
445457 :* 1 = increase angle between side road and outgoing main road
446458 :* 2 = increase angle between side road and incoming main road
447
459 <p>
448460 ;--cycle-map
449 : Tells mkgmap that the map is for cyclists. This assumes that
461 : Tells mkgmap that the map is for cyclists. This assumes that
450462 different vehicles are different kinds of bicycles, e.g. a way
451463 with mkgmap:car=yes and mkgmap:bicycle=no may be a road that is
452464 good for racing bikes, but not for other cyclists.
453465 This allows to optimise sharp angles at junctions of those roads.
454466 Don't use with the default style as that is a general style!
455
467 <p>
456468 ;--report-similar-arcs
457469 : Issue a warning when more than one arc connects two nodes and
458470 the ways that the arcs are derived from contain identical
459471 points. It doesn't make sense to use this option at the same
460472 time as using the cycleway creating options.
461
473 <p>
462474 ;--report-dead-ends=LEVEL
463475 : Set the dead end road warning level. The value of LEVEL (which
464476 defaults to 1 if this option is not specified) determines
465 those roads to report:
466 :* 0 = none
467 :* 1 = multiple one-way roads that join together but go nowhere
468 :* 2 = individual one-way roads that go nowhere.
469
470
477 those roads to report: 0 = none, 1 = multiple one-way roads
478 that join together but go nowhere, 2 = individual one-way roads
479 that go nowhere.
480 <p>
471481 ;--road-name-pois[=GarminCode]
472 : Now ignored, former meaning:
473 Generate a POI for each named road. By default, the POIs'
482 : Now ignored, former usage:
483 Generate a POI for each named road. By default, the POIs'
474484 Garmin type code is 0x640a. If desired, a different type code
475 can be specified with this option. This s a workaround for not
485 can be specified with this option. This is a workaround for not
476486 being able to search for roads.
477
478 : 0x2f15: a blue dot in the middle of the road, and if you select,
479 or 'hover' over it, the streetname appears.
480
487 0x2f15: a blue dot in the middle of the road, and if you select,
488 or 'hover' over it, the street name appears.
481489 ;--add-pois-to-lines
482490 : Generate POIs for lines. For each line (must not be closed) POIs are
483491 created at several points of the line. Each POI is tagged with the
488496 :* end - The last point of the line
489497 :* inner - Each point of the line except the first and the last
490498 :* mid - The middle point
491 :
492
493499 ;--add-pois-to-areas
494500 : Generate a POI for each polygon and multipolygon. The POIs are created
495501 after the relation style but before the other styles are applied. Each
497503 the area/multipolygon. Additionally the tag mkgmap:area2poi=true is
498504 set so that it is possible to use that information in the points style
499505 file. Artifical polygons created by multipolyon processing are not used.
500 The POIs are created at the following positions
501 :; polygons:
502 :: First rule that applies:
506 The POIs are created at the following positions (first rule that applies):
507 :;polygons:
508 ::First rule that applies of
503509 ::* the first node tagged with a tag defined by the pois-to-areas-placement option
504510 ::* the centre point
505 ::
506
507 :;multipolygons:
508 :: First rule that applies:
511 :; multipolygons:
512 ::First rule that applies of
509513 ::* the node with role=label
510514 ::* the centre point of the biggest area
511 :
512
513515 ;--pois-to-areas-placement[=taglist]
514516 : A semicolon separated list of tag=value definitions. A POI is placed at the first
515517 node of the polygon tagged with the first tag/value pair. If none of the nodes are
517519 pair is used and so on. If none of the tag-value pairs matches or the taglist is empty
518520 the centre of the polygon is used.
519521 It is possible to define wildcards for tag values like entrance=*.
520
521 : Default: entrance=main;entrance=yes;building=entrance
522
522 <p>Default: entrance=main;entrance=yes;building=entrance
523 <p>
523524 ;--precomp-sea=directory|zipfile
524525 : Defines the directory or a zip file that contains precompiled sea tiles.
525 Sea files in a zip file must be located in the zip files root directory or in
526 Sea files in a zip file must be located in the zip file's root directory or in
526527 a sub directory sea. When this option is defined all natural=coastline tags
527528 from the input OSM tiles are removed and the precompiled data is used instead.
528529 This option can be combined with the generate-sea options multipolygon, polygons
529530 and land-tag. The coastlinefile option is ignored if precomp-sea is set.
530
531 <p>
531532 ;--coastlinefile=filename[,filename]
532533 : Defines a comma separated list of files that contain coastline
533534 data. The coastline data from the input files is removed if
534535 this option is set. Files must have OSM or PBF fileformat.
535
536 <p>
536537 ;--generate-sea[=ValueList]
537538 : Generate sea polygons. ValueList is an optional comma
538539 separated list of values:
540 <p>
539541 :;multipolygon
540 :: generate the sea using a multipolygon (the default
541 behaviour so this really doesn't need to be specified).
542 :: generate the sea using a multipolygon (the default behaviour so this really doesn't need to be specified).
543
542544 :;polygons | no-mp
543545 :: don't generate the sea using a multipolygon - instead,
544546 generate a background sea polygon plus individual land
551553 :;no-sea-sectors
552554 :: disable the generation of "sea sectors" when the
553555 coastline fails to reach the tile's boundary.
554
555556 :;extend-sea-sectors
556 :: same as no-sea-sectors. Additional adds a point so
557 coastline reaches the nearest tile boundary.
557 :: same as no-sea-sectors. Additional adds a point so coastline reaches the nearest tile boundary.
558558
559559 :;land-tag=TAG=VAL
560 :: tag to use for land polygons (default natural=land).
561
560 :: tag to use for land polygons (default natural=land).
562561 :;close-gaps=NUM
563562 :: close gaps in coastline that are less than this distance (metres)
564563
568567 (works only with multipolygon processing)
569568
570569 :;fbgap=NUM
571 :: flood blocker gap in metre (default 40) points that are closer to the sea polygon do not block
572
570 :: flood blocker gap in metre (default 40)
571 points that are closer to the sea polygon do not block
573572 :;fbthres=NUM
574573 :: at least so many highway points must be contained in
575574 a sea polygon so that it may be removed by the flood
584583 :: switches on the debugging of the flood blocker
585584 generates GPX files for each polygon checked by
586585 the flood blocker
587 :
588586
589587 ;--make-poi-index
590588 : Generate the POI index (not yet useful).
591
589 <p>
592590 ;--nsis
593591 : Write a .nsi file that can be used with the Nullsoft Scriptable Install System
594592 (NSIS) to create a Windows Mapsource Installer.
595
593 <p>
596594 ;--make-all-cycleways
597 : Deprecated, use --make-opposite-cycleways instead. Former meaning:
598 Turn on all of the options that make cycleways.
599
595 : Deprecated, use --make-opposite-cycleways instead. Former meaning:
596 <div class=preserve><nowiki>
597 Turn on all of the options that make cycleways.
598
599 </nowiki></div>
600600 ;--make-opposite-cycleways
601601 : Some one-way streets allow bicycle traffic in the reverse
602602 direction and this option makes a way with the same points as
603603 the original that allows bicycle traffic (in both directions).
604
604 <p>
605605 ;--make-cycleways
606 : Now ignored, former meaning:
607 Some streets have a separate cycleway track/lane just for
606 : Now ignored, former meaning:
607 <div class=preserve><nowiki>
608 Some streets have a separate cycleway track/lane just for
608609 bicycle traffic and this option makes a way with the same
609610 points as the original that allows bicycle traffic. Also,
610611 bicycle traffic is prohibited from using the original way
611612 (unless that way's bicycle access has been defined).
612613
614 </nowiki></div>
613615 ;--link-pois-to-ways
614 :This option may copy some specific attributes of a POI
616 : This option may copy some specific attributes of a POI
615617 to a small part of the way the POI is located on. This can be used
616618 to let barriers block a way or to lower the calculated speed
617619 around traffic signals.
618 POIs with the tags highway=* (e.g. highway=traffic_signals)
620 POIs with the tags highway=* (e.g. highway=traffic_signals)
619621 or barrier=* (e.g. barrier=cycle_barrier) are supported.
620622 The style developer must add at least one of the access tags
621 (mkgmap:foot, mkgmap:car etc.), mkgmap:road-speed and/or
622 mkgmap:road-class to the POI.
623 The access tags are ignored if they have no effect for the way,
624 else a route restriction is added at the POI so that only
625 allowed vehicles are routed through it.
626 The tags mkgmap:road-speed and/or mkgmap:road-class are
623 (mkgmap:foot, mkgmap:car etc.), mkgmap:road-speed and/or
624 mkgmap:road-class to the POI.
625 The access tags are ignored if they have no effect for the way,
626 else a route restriction is added at the POI so that only
627 allowed vehicles are routed through it.
628 The tags mkgmap:road-speed and/or mkgmap:road-class are
627629 applied to a small part of the way around the POI, typically
628630 to the next junction or a length of ~25 m. The tags
629 are ignored for pedestrian-only ways.
630
631 are ignored for pedestrian-only ways.
632 <p>
631633 ;--process-destination
632634 : Splits all motorway_link, trunk_link, and primary_link
633 ways tagged with destination into two or three parts where
635 ways tagged with destination into two or three parts where
634636 the second part is additionally tagged with mkgmap:dest_hint=true.
635 This allows using any routable Garmin type (except 0x08 and 0x09)
637 This allows to use any routable Garmin type (except 0x08 and 0x09)
636638 for that part so that the Garmin device tells the name of
637639 this part as hint which destination to follow.
638640 See also --process-exits.
639
641 <p>
640642 ;--process-exits
641643 : Usual Garmin devices do not tell the name of the exit on motorways
642644 while routing with mkgmap created maps. This option splits each
643645 motorway_link, trunk_link and primary_link way into three parts.
644646 All parts are tagged with the original tags of the link.
645647 Additionally the middle part is tagged with the following tags:
648 <pre>
646649 mkgmap:exit_hint=true
647650 mkgmap:exit_hint_ref=<ref tag value of the exit>
648651 mkgmap:exit_hint_name=<name tag value of the exit>
649652 mkgmap:exit_hint_exit_to=<exit_to tag value of the exit>
650
651 : Adding a rule checking the mkgmap:exit_hint=true makes it possible
653 </pre>
654 Adding a rule checking the mkgmap:exit_hint=true makes it possible
652655 to use any routable Garmin type (except 0x08 and 0x09) for the middle
653656 part so that the Garmin device tells the name of this middle part as
654 hint where to leave the motorway/trunk. The first part must have type
655 0x08 or 0x09 so that Garmin uses the hint.
657 hint where to leave the motorway/trunk.
658 The first part must have type 0x08 or 0x09 so that Garmin uses the hint.
656659
657660 ;--delete-tags-file=FILENAME
658661 : Names a file that should contain one or more lines of the form
659662 TAG=VALUE or TAG=*. Blank lines and lines that start with
660663 a # or ; are ignored. All tag/value pairs in the OSM input are
661664 compared with these patterns and those that match are deleted.
662
665 <p>
663666 ;--tdbfile
664667 : Write files that are essential to running with MapSource, a .tdb file and
665668 an overview map.
666
669 <p>
667670 ;--show-profiles=1
668671 : Sets a flag in tdb file which marks set mapset as having contour
669672 lines and allows showing profile in MapSource. Default is 0
670673 which means disabled.
671
674 <p>
672675 ;--draw-priority=25
673676 : When two maps cover the same area, this option controls what
674677 order they are drawn in and therefore which map is on top of
675678 which. Higher priorities are drawn "on top" of lower
676679 priorities.
677
680 <p>
678681 ;--transparent
679682 : Make the map transparent, so that if two maps are loaded that
680683 cover the same area, you can see through this map and see the
681684 lower map too. Useful for contour line maps among other
682685 things.
683
686 <p>
684687 ;--poi-address
685688 : Enable address / phone information to POIs. Address info is
686689 read according to the "Karlsruhe" tagging schema. Automatic
687690 filling of missing information could be enabled using the
688691 "location-autofill" option.
689
690 : Default is enabled, use --no-poi-address to disable.
691
692 Default is enabled, use --no-poi-address to disable.
693 <p>
692694 ;--verbose
693695 : Makes some operations more verbose. Mostly used with --list-styles.
477477 can be specified with this option. This is a workaround for not
478478 being able to search for roads.
479479 0x2f15: a blue dot in the middle of the road, and if you select,
480 or 'hover' over it, the street name appears.
480 or 'hover' over it, the street name appears.
481481
482482 --add-pois-to-lines
483483 Generate POIs for lines. For each line (must not be closed) POIs are
639639 Usual Garmin devices do not tell the name of the exit on motorways
640640 while routing with mkgmap created maps. This option splits each
641641 motorway_link, trunk_link and primary_link way into three parts.
642 All parts are tagged with the original tags of the link.
643 Additionally the middle part is tagged with the following tags:
642 All parts are tagged with the original tags of the link.
643 Additionally the middle part is tagged with the following tags:
644644 mkgmap:exit_hint=true
645645 mkgmap:exit_hint_ref=<ref tag value of the exit>
646646 mkgmap:exit_hint_name=<name tag value of the exit>
649649 to use any routable Garmin type (except 0x08 and 0x09) for the middle
650650 part so that the Garmin device tells the name of this middle part as
651651 hint where to leave the motorway/trunk.
652 The first part must have type 0x08 or 0x09 so that Garmin uses the hint.
652 The first part must have type 0x08 or 0x09 so that Garmin uses the hint.
653653
654654 --delete-tags-file=FILENAME
655655 Names a file that should contain one or more lines of the form
656656 TAG=VALUE or TAG=*. Blank lines and lines that start with
657 # or ; are ignored. All tag/value pairs in the OSM input are
657 a # or ; are ignored. All tag/value pairs in the OSM input are
658658 compared with these patterns and those that match are deleted.
659659
660660 --tdbfile
0 svn.version: 3656
1 build.timestamp: 2015-12-19T07:08:56+0000
0 svn.version: 3660
1 build.timestamp: 2016-01-24T08:14:44+0000
11 # name, brand, operator, ref
22
33 # delete FIXME values (they should be better used in maintenance maps)
4 ref=FIXME | ref=fixme { delete ref; }
5 operator=FIXME | operator=fixme { delete operator; }
6 brand=FIXME | brand=fixme { delete brand; }
7 name=FIXME | name=fixme { delete name; }
4 ref ~ '(?i)fix[ _]?+me' { delete ref; }
5 operator ~ '(?i)fix[ _]?+me' { delete operator; }
6 brand ~ '(?i)fix[ _]?+me' { delete brand; }
7 name ~ '(?i)fix[ _]?+me' { delete name; }
88
99 # delete duplicate names
1010 operator=${brand} { delete operator; }
1717 mwtext -t text $f > ../dist/doc/$f
1818 done
1919
20 # Use the actual options help file.
21 cp resources/help/en/options ../dist/doc/options.txt
22
2023 DOC=~/www/web/mkgmap/content/doc
2124 WEB_DOC_PDF=~/www/mkgmap.org.uk/docroot/doc/pdf
2225 cp *.txt $DOC
779779 double ap = a.distance(this);
780780 double ab = a.distance(b);
781781 double bp = b.distance(this);
782 if (ap == 0 || bp == 0)
783 return 0;
782784 double abpa = (ab+ap+bp)/2;
783785 double dx = abpa-ab;
784786 double dist;
549549 public void reportSimilarArcs() {
550550 for(int i = 0; i < arcs.size(); ++i) {
551551 RouteArc arci = arcs.get(i);
552 if (arci.isDirect() == false)
553 continue;
552554 for(int j = i + 1; j < arcs.size(); ++j) {
553555 RouteArc arcj = arcs.get(j);
556 if (arcj.isDirect() == false)
557 continue;
554558 if(arci.getDest() == arcj.getDest() &&
555559 arci.getLength() == arcj.getLength() &&
556560 arci.getPointsHash() == arcj.getPointsHash()) {
561 log.error(arci.isForward(),arcj.isForward());
557562 log.warn("Similar arcs (" + arci.getRoadDef() + " and " + arcj.getRoadDef() + ") from " + coord.toOSMURL());
558563 }
559564 }
347347 return null;
348348
349349 List<Numbers> list = new ArrayList<>();
350 boolean headerWasReported = false;
350351 for (ExtNumbers curr = this; curr != null; curr = curr.next){
351352 if (curr.hasNumbers() == false)
352353 continue;
353354 list.add(curr.getNumbers());
354355 if (log.isInfoEnabled()) {
355 if (curr.prev == null){
356 if (headerWasReported == false){
356357 MapRoad road = curr.getRoad();
357358 if (road.getStreet() == null && road.getName() == null)
358359 log.info("final numbers for", road, curr.housenumberRoad.getName(), "in", road.getCity());
359360 else
360361 log.info("final numbers for", road, "in", road.getCity());
362 headerWasReported = true;
361363 }
362364 Numbers cn = curr.getNumbers();
363365 log.info("Left: ",cn.getLeftNumberStyle(),cn.getIndex(),"Start:",cn.getLeftStart(),"End:",cn.getLeftEnd(), "numbers "+curr.getHouses(Numbers.LEFT));
584586
585587 if (toAdd == null) {
586588 Coord wanted = c1.makeBetweenPoint(c2, wantedFraction);
587
589 log.debug("possible solution: split segment with length",formatLen(segmentLength),"near",formatLen(wantedFraction * segmentLength));
588590 toAdd = rasterLineNearPoint(c1, c2, wanted, true);
589591 if (toAdd != null){
590592 if (toAdd.equals(c1)){
621623 log.error("internal error, cannot split",this);
622624 }
623625 if (toAdd != null){
624 if (log.isDebugEnabled())
626 if (log.isDebugEnabled()){
625627 log.debug("solution: split segment with length",formatLen(segmentLength),"at",formatLen(usedFraction * segmentLength));
628 double distToLine = toAdd.getDisplayedCoord().distToLineSegment(c1.getDisplayedCoord(), c2.getDisplayedCoord());
629 log.info("adding number node at",toAdd.toDegreeString(),"to split, dist to line is",formatLen(distToLine));
630 }
626631 doSplit = true;
627632 splitSegment = seg+1;
628633 addAsNumberNode(splitSegment, toAdd);
154154 pointToUse = (opt1Dist < opt2Dist) ? c1 : c2;
155155 }
156156 else {
157 if (log.isInfoEnabled()){
158 double distLine = pointToUse.distToLineSegment(c1.getDisplayedCoord(), c2.getDisplayedCoord());
159 log.info("adding number nodes at",pointToUse.toDegreeString(),"to optimize address search", "dist to line is", HousenumberGenerator.formatLen(distLine));
160 }
157161 timesToAdd = 2;
158162 }
159163 }