logo separator

[mkgmap-dev] Level number too large

From Gerd Petermann gpetermann_muenchen at hotmail.com on Thu Jan 16 15:16:43 GMT 2020

Hi Andrzej,

please double check. I get the same error when I use r4323 (as expected):
D:\mkgmap-4323>java -jar dist\mkgmap.jar --style-file=c:\mystyles\level f:\osm\dummy.osm
Time started: Thu Jan 16 16:11:26 CET 2020
Error in style: Error: Level number too large, max=0

Maybe you get a different error message? The only change in TypeReader since 4223 was here:
http://www.mkgmap.org.uk/websvn/listing.php?repname=mkgmap&path=%2Fbranches%2FNET-no-NOD%2F&rev=4345#a7829a7e53a360b6e4dc93855915e8189

Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Andrzej Popowski <popej at poczta.onet.pl>
Gesendet: Donnerstag, 16. Januar 2020 16:01
An: mkgmap-dev at lists.mkgmap.org.uk
Betreff: Re: [mkgmap-dev] Level number too large

Hi Gerd,

probably some other changes made this error to appear. I have checked
that v4323 compiles my map, while v4386 reports error.

I'm not sure about the purpose of the patched function, but I'm afraid
there could be problems with following example:

options: levels=0:24,1:22
style:   .... [... level 2-3]

I don't know which part of code would be responsible for discarding an
object with levels higher than maximum. If this is due to patched
function, then maybe better would be something like:

if (level > max)
        return levels[0].getBits() -1;


--
Best regards,
Andrzej
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


More information about the mkgmap-dev mailing list