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

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();
        }
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to