I can't remember either why this was set as default. Attached is a patch that documents it.

El 31/3/21 a las 15:24, Gerd Petermann escribió:
Hi Carlos,

the tricky part here is that -tdbfile is enabled by default. I don't remember 
why this was done, and I don't know why it is not documented, but you can use 
--no-tdbfile to overwrite the default.

Gerd

________________________________________
Von: mkgmap-dev <[email protected]> im Auftrag von Carlos Dávila 
<[email protected]>
Gesendet: Mittwoch, 31. März 2021 15:18
An: Development list for mkgmap
Betreff: [mkgmap-dev] Behavior of overview options

According to options file,  --overview-mapname and --overview-mapnumber
parameters should only have an effect "If --tdbfile is enabled...", but
they seem to be always taken into account regardless of --tdbfile, as
can be checked with command: java -jar mkgmap.jar --gmapsupp
--overview-mapname=test --overview-mapnumber=0000001 test.osm

Additionally, overview files (osmmap.img, osmmap.tdb and ovm_XXX.img)
are created when only --gmapsupp is passed to mkgmap (no --tdb-file), as
in the command below:

java -jar mkgmap.jar --gmapsupp test.osm

I think if you just want to create a gmapsupp file, overview files are
not needed at all and they should not be created.




_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Index: resources/help/en/options
===================================================================
--- resources/help/en/options	(revisión: 4605)
+++ resources/help/en/options	(copia de trabajo)
@@ -312,11 +312,11 @@
 === Overview map options ===
 
 --overview-mapname=name
-    If --tdbfile is enabled, this gives the name of the overview .img and .tdb
+    If --tdbfile is enabled (default), this gives the name of the overview .img and .tdb
     files. The default map name is osmmap.
 
 --overview-mapnumber=8 digit number
-    If --tdbfile is enabled, this gives the internal 8 digit number used in the
+    If --tdbfile is enabled (default), this gives the internal 8 digit number used in the
     overview map and tdb file. The default number is 63240000.
 
 --overview-levels=level:resolution[,level:resolution...]
@@ -920,8 +920,9 @@
     "(?i)fix[ _]?+me".
 
 --tdbfile
-    Write files that are essential to running with BaseCamp; a .tdb file and an
-    overview map. The options --nsis and --gmapi imply --tdbfile.
+    Write files that are essential to running with BaseCamp: a .tdb file and an
+    overview map. This option is enabled by default; additionally, options 
+    --nsis and --gmapi imply --tdbfile.
 
 --show-profiles=1
     Sets a flag in the tdb file. The meaning depends on the availability of DEM
Index: doc/options.txt
===================================================================
--- doc/options.txt	(revisión: 4605)
+++ doc/options.txt	(copia de trabajo)
@@ -316,11 +316,11 @@
 === Overview map options ===
 
 ;--overview-mapname=name
-: 	If --tdbfile is enabled, this gives the name of the overview
+: 	If --tdbfile is enabled (default), this gives the name of the overview
 .img and .tdb files. The default map name is osmmap.
 
 ;--overview-mapnumber=8 digit number
-: 	If --tdbfile is enabled, this gives the internal 8 digit
+: 	If --tdbfile is enabled (default), this gives the internal 8 digit
 number used in the overview map and tdb file.  The default
 number is 63240000.
 
@@ -936,8 +936,9 @@
 : 	Ignore all tags for which the value matches the regular expression pattern "(?i)fix[ _]?+me".	
 
 ;--tdbfile
-: 	Write files that are essential to running with BaseCamp; a .tdb file and
-an overview map. The options --nsis and --gmapi imply --tdbfile.
+: 	Write files that are essential to running with BaseCamp: a .tdb file and
+an overview map. This option is enabled by default; additionally, options --nsis and 
+--gmapi imply --tdbfile.
 
 ;--show-profiles=1
 : 	Sets a flag in the tdb file. The meaning depends on the availability of DEM
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to