Hi Gerd & Carlos I've found the problem and attach a patch which reduces the Subdivision line limit to 254.
Subdivisions/areas have a set of limits, one of which was <= 255 lines. These lines can be of any type including roads. When --route, a reference to each line/road part is created, but these are numbered from 1, so the 255th line in a SubDivision is numbered 256 as a road segment and this can't be represented as a byte in the NET structures. It looks like this problem has always been there, but is most likely to manifest itself in areas with mostly roads. Ticker
Index: src/uk/me/parabola/mkgmap/build/MapSplitter.java =================================================================== --- src/uk/me/parabola/mkgmap/build/MapSplitter.java (revision 4907) +++ src/uk/me/parabola/mkgmap/build/MapSplitter.java (working copy) @@ -48,7 +48,7 @@ // The maximum number of lines. NET points to lines in subdivision // using bytes. - public static final int MAX_NUM_LINES = 0xff; + public static final int MAX_NUM_LINES = 0xff-1; // Subdivision/RoadDef/RoadIndex number from 1 public static final int MAX_NUM_POINTS = 0xff;
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev