
Hi Have spent a long time trying to work out why 2 seemingly identical files can cause havoc when parsing. My humble findings might be of use to anyone creating their own mp files from say a gpx or a kml I have attached 2 files: 1.mp parses correctly 1witherrors.mp contains several changes, one of which is difficult to spot but causes Java errors ie spot the difference: Level0=24 Level0=24 The first one causes Java errors download from http://files.mkgmap.org.uk/download/261/2mpfiles.zip Main problem: Some irrelevant spaces are not trimmed but cause the parser to choke [POLYLINE ] [ POLYLINE ] Level0=24(spcs) Uppercase specific [Polyline] (not allowed) [End] (not allowed but no error message) This is a fatal error, not fatal in mkgmap but basecamp etc as it creates empty maps. Perhaps an error msg is needed In fact it causes basecamp to hang up and a restart is impossible without uninstalling the offending mapset. Lowercase/Uppercase specific DATA0: causes a Java problem r Nick -- View this message in context: http://gis.19327.n5.nabble.com/mp-errors-and-basecamp-hanging-up-tp5840285.h... Sent from the Mkgmap Development mailing list archive at Nabble.com.

Hi Nick
Have spent a long time trying to work out why 2 seemingly identical files can cause havoc when parsing.
Thanks, the attached patch ignores most white space and relaxes a few places where we used to require upper case. It deals with the your example I believe. ..Steve

Hi Steve Superb , that was quick work ! best regards Nick -- View this message in context: http://gis.19327.n5.nabble.com/mp-errors-and-basecamp-hanging-up-tp5840285p5... Sent from the Mkgmap Development mailing list archive at Nabble.com.
participants (2)
-
nwillink
-
Steve Ratcliffe