[mkgmap-dev] mkgmap --check-styles and line count
From Gerd Petermann gpetermann_muenchen at hotmail.com on Fri Mar 21 20:36:47 GMT 2014
Hi Bernd, the problem is caused by the empty lines in your style file and a routine which tries to detect all kinds of line feed and carriage return combinations (0x0a, 0x0d) as "end of line". As a result, empty lines are not counted. @Steve: I know that this part in TokenScanner is critical, so I don't dare to change it: if (c == '\n' || c == '\r') { while ((c = readChar()) == '\n' || c == '\r') val.append(c); .. } Gerd > From: weigelt.bernd at web.de > To: mkgmap-dev at lists.mkgmap.org.uk > Date: Fri, 21 Mar 2014 20:11:14 +0100 > Subject: [mkgmap-dev] mkgmap --check-styles and line count > > Hi > > my style include a lot of rules like this: > > highway=footway [0x1200d resolution 23-23 continue] > highway=footway [0x1100d resolution 24 continue] > highway=footway & > (bicycle=designated | > bicycle=permissive | > bicycle=official | > bicycle=yes) [0x0a resolution 24 road_class=0 road_speed=1] > highway=footway [0x0d resolution 24 road_class=0 road_speed=0] > > IMHO mkgmap count four lines, is that correct? > > > now it is difficult to find the error, if the files includes up to 700 lines, i > think, there are some larger styles around the world > mkgmap tells: > Error in style: Error: (lines:393): Stack size is 0 > but the line with the error is line 485 in the style file > > my error was to use '[' instead '(' ;-) > > > > Bernd > > > > _______________________________________________ > mkgmap-dev mailing list > mkgmap-dev at lists.mkgmap.org.uk > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20140321/66fe81b1/attachment.html>
- Previous message: [mkgmap-dev] mkgmap --check-styles and line count
- Next message: [mkgmap-dev] mkgmap --check-styles and line count
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list