Problem with !(mkgmap:unpaved=1), found a line in 'line' that DOES NOT cause compile Error

I found this line that uses very similar !(unpaved) type command but does NOT CAUSE an error on mkgmap compile. highway=tertiary_link & !(mkgmap:unpaved=1) & bridge!=yes [0x08 road_class=1 road_speed=1 resolution 20 continue] but I do have a complie error with : (highway=residential | highway=living_street | highway=minor | highway=unclassified) & !(mkgmap:unpaved=1) & bridge!=yes [0x06 road_class=0 road_speed=2 resolution 22 continue] The only difference I can see is 2 Parentheses back to back seems to cause a problem Greg

Hi Greg
I found this line that uses very similar !(unpaved) type command but does NOT CAUSE an error on mkgmap compile.
highway=tertiary_link & !(mkgmap:unpaved=1) & bridge!=yes [0x08 road_class=1 road_speed=1 resolution 20 continue]
but I do have a complie error with :
(highway=residential | highway=living_street | highway=minor | highway=unclassified) & !(mkgmap:unpaved=1) & bridge!=yes [0x06 road_class=0 road_speed=2 resolution 22 continue]
Yes, you have found a bug. I will try to fix it. As a workaround you can add a highway=* This doesn't change the result but it does allow it to compile with the current version. (highway=residential | highway=living_street | highway=minor | highway=unclassified) & highway=* & !(mkgmap:unpaved=1) & bridge!=yes [0x06 road_class=0 road_speed=2 resolution 22 continue] Thanks for reporting this problem. ..Steve

Hi I have a fix, patch attached. A pre-built jar can be found here: http://files.mkgmap.org.uk/download/290/mkgmap.jar Its just one statement, so I shall apply it tomorrow. ..Steve
participants (2)
-
greg crago
-
Steve Ratcliffe