logo separator

[mkgmap-dev] mp errors and basecamp hanging up

From nwillink osm at pinns.co.uk on Fri Apr 10 12:47:36 BST 2015

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.html
Sent from the Mkgmap Development mailing list archive at Nabble.com.


More information about the mkgmap-dev mailing list