Re: [mkgmap-dev] [mkgmap-svn] Commit r572: MDR16 is some kind of codebook.

2021-12-20 Thread Gerd Petermann
Hi Ticker, yes, with your theory I found errors in my code. Here's the corrected version // depth 3, prefix 0x07 addHuffmanNode("111", 'A'); // depth 4, prefix 0x09

Re: [mkgmap-dev] Problem using profiles with OSM based maps

2021-12-20 Thread Gerd Petermann
Hi Carlos, I really don't know. maybe this thread helps? https://www.mkgmap.org.uk/pipermail/mkgmap-dev/2017q1/025927.html Gerd Von: mkgmap-dev im Auftrag von Carlos Dávila Gesendet: Montag, 20. Dezember 2021 10:48 An: mkgmap-dev@lists.mkgmap.org.uk

Re: [mkgmap-dev] [mkgmap-svn] Commit r572: MDR16 is some kind of codebook.

2021-12-20 Thread Gerd Petermann
Hi Ticker, OK, I see. It seems to work out for most of the delta values. Deltas are 6,9,6,4,3,2,5,2,3,3,1,4,9,4 I'll try to find out if I can modify the tree so that it matches all numbers. Probably sometimes I found too short codes. Good finding! Gerd

Re: [mkgmap-dev] Problem using profiles with OSM based maps

2021-12-20 Thread Carlos Dávila
Thanks Gerd for the hint, I didn't know about --custom option. But according to mkgmap help, it is for marine maps, maybe using it as default could break more than fix? El 20/12/21 a las 10:18, Gerd Petermann escribió: Hi Carlos, I don't understand all of this but the mentioned change from

Re: [mkgmap-dev] [mkgmap-svn] Commit r572: MDR16 is some kind of codebook.

2021-12-20 Thread Ticker Berkin
Hi Gerd Are you OK with the idea of the letters at any level being to the right. Then the letters at this level take decreasing values. When exhausted, the next lower slot will be the start of the next level, so subtract 1 to find it and append '1' to the bit-string to get the starting position

Re: [mkgmap-dev] [mkgmap-svn] Commit r572: MDR16 is some kind of codebook.

2021-12-20 Thread Gerd Petermann
Hi Ticker, please explain. What counters do you see? What do they mean? Gerd Von: mkgmap-dev im Auftrag von Ticker Berkin Gesendet: Montag, 20. Dezember 2021 09:49 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] [mkgmap-svn]Commit

Re: [mkgmap-dev] Problem using profiles with OSM based maps

2021-12-20 Thread Gerd Petermann
Hi Carlos, I don't understand all of this but the mentioned change from 17 (0x11) to 23 (0x17) is done when the --custom option is given. Gerd Von: mkgmap-dev im Auftrag von Carlos Dávila Gesendet: Montag, 20. Dezember 2021 09:55 An: Development

[mkgmap-dev] Problem using profiles with OSM based maps

2021-12-20 Thread Carlos Dávila
An user of my maps has reported the following problem when using OSM based maps. He uses profiles in a GPSMAP 65s mainly to enable/disable different sets of maps associated to each profile. When he has several OSM based maps in the SD card (not only mines, also from other sources, witch I

Re: [mkgmap-dev] [mkgmap-svn] Commit r572: MDR16 is some kind of codebook.

2021-12-20 Thread Ticker Berkin
Hi Gerd The tree is arranged so that letters at any level always have the highest values, ie come in from the right, and there are no gaps so no need for bit-flags. All it needs is the count of letters at each level to determine the tree. For levels 7 to 18 this is consistent and the count can