logo separator

[mkgmap-dev] Serious mkgmap Bug - set unconnected type not respecting continue command!

From Felix Hartmann extremecarver at gmail.com on Mon Aug 26 20:37:45 BST 2013

Well the bug is quite serious and took me about 6 hours to find out why 
I'm missing roads in my maps.
In case you have an "unconnected" type of a road that you set up a rule 
for, with " set mkgmap:set_unconnected_type=none" and [continue] - all 
subsequent commands for the object will be lost, if the set:unconnected 
becomes true.

Reproduce:

lines file (only this content needed).
highway=motorway & bridge=yes {set mkgmap:set_unconnected_type=none} 
[0x13 road_class=1 road_speed=0 resolution 24 continue]
highway=motorway [0x10001 resolution 24 continue]

Now in all places that have a bridge, the motorway will be missing.


If however the example is changed to the following, the bug is not 
present (as the unconnected type condition is not true):
highway=motorway & bridge=yes {set mkgmap:set_unconnected_type=none} 
[0x13 road_class=1 road_speed=0 resolution 24 continue]
highway=motorway [0x01  road_class=1 road_speed=0 resolution 24 continue]




I don't know if there are any other problems related to this bug. 
However it is really defeating the purpose of set unconnected type right 
now, if working with overlays for bridges, routes, and many other things!

-- 
keep on biking and discovering new trails

Felix
openmtbmap.org & www.velomap.org



More information about the mkgmap-dev mailing list