[mkgmap-dev] Level number too large
From Andrzej Popowski popej at poczta.onet.pl on Wed Jan 15 20:41:36 GMT 2020
Hi All, since something is wrong with downloads on mkgmap site, I have compiled version 4419. I guess this is the latest official release. Now with some old maps I get a new error: Error in style: Error: Level number too large, max=0 I guess this is a conflict between arguments: levels=0:24 and style with declarations like: .... [... level 3] In my opinion, this should be no error, as it wasn't in older versions of mkgmap. It is harmless and quite useful, that style defines higher levels then a particular map compiled with the style. I have attached a patch, but I'm not sure what I'm really changing. Please look at it. -- Best regards, Andrzej -------------- next part -------------- Index: src/uk/me/parabola/mkgmap/osmstyle/TypeReader.java =================================================================== --- src/uk/me/parabola/mkgmap/osmstyle/TypeReader.java (revision 4419) +++ src/uk/me/parabola/mkgmap/osmstyle/TypeReader.java (working copy) @@ -245,7 +245,7 @@ private int toResolution(int level) { int max = levels.length - 1; if (level > max) - throw new SyntaxException("Level number too large, max=" + max); + return levels[0].getBits(); return levels[max - level].getBits(); }
- Previous message: [mkgmap-dev] [mkgmap-svn] Commit r4417: Improve IsInFunction:
- Next message: [mkgmap-dev] Level number too large
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list