logo separator

[mkgmap-dev] Regression: Revision 2448 breaking routing in some cases

From Felix Hartmann extremecarver at gmail.com on Wed Jan 30 10:46:24 GMT 2013

Well, I got notified that there is a routing problem in one of my maps, 
and after trying around a long time, I tracked it down to release 2448 
that breaks routing under certain occasions. Here is a screenshot of the 
the routing failing:

http://openmtbmap.org/broken_routing.jpg

So for a very short distance, the routing will actually route over the 
broken road (the section where the route is missing).
However for longer sections on that road, or route that actually has a 
routepoint manually set on it, Mapsource/Basecamp/GPS will fail to 
calculate a route at all. (e.g. if you try to route from the North point 
of the route in the picture, South to the Bergkirchen place POI/node).


It is dependant on the the style - but I played with deleting lots of 
stuff from the style, and it seems to be quite random.
So here are the downloads (all .exe are lzma packed, just unpack them if 
not on windows):

http://openmtbmap.org/velonordrhein-westfalen_working_2447.exe
http://openmtbmap.org/velonordrhein-westfalen_broken_2448.exe

Search for Bergkirchen, it is in the tile 66570017


Maps are compiled with:
c:\OpenMTBMap\maps>start /low /b /wait java -jar -Xms4000M -Xmx10400M 
c:\openmtbmap\mkgmap.jar --max-jobs=8 --generate-sea --latin1 
--precomp-sea=c:\openmtbmap\maps\sea 
"--style-file=c:\openmtbmap\velomap_style" --nsis --index --transparent 
--adjust-turn-headings --add-pois-to-areas --ignore-maxspeeds 
--reduce-point-density=3 --x-reduce-point-density-polygon=6 
--link-pois-to-ways --ignore-turn-restrictions --remove-short-arcs=5.4 
--min-size-polygon=18 --description=velomap_dnw  --show-profiles=1 
--location-autofill=bounds,is_in,nearest 
--bounds=c:\openmtbmap\maps\bounds --route --country-abbr=dnw 
--country-name=nordrhein-westfalen --mapname=66570000 --family-id=6657 
--product-id=1 --series-name=velomap_nordrhein-westfalen_30.01.2013 
--family-name=velomap_dnw_30.01.2013 --tdbfile 
--overview-mapname=mapsetc --keep-going 
--area-name="nordrhein-westfalen_30.01.2013_velomap.org" -c 
c:\openmtbmap\maps\template.nordrhein-westfalen 7*.img  1>NUL

--remove-short-arcs == resulting road will be broken
--remove-short-arcs=5.4 == resulting road will be broken
without remove-short-arcs == resulting road will be broken

So it doesn't directly have to do with the --remove-short-arcs function.


(also Compiled with --remove-short-arcs=5.4 )
http://openmtbmap.org/velonordrhein-westfalen_broken_2466.exe

then Uncommented the following lines in my style-file, which shouldn't 
affect routing at all, but it does as the mistake is gone:
# power=line         [0x29 resolution 22 continue]
# power=minor_line | powerline=yes | power_line=yes | powerline=true | 
power_line=true                [0x29 resolution 24 continue]
http://openmtbmap.org/velonordrhein-westfalen_nopower_2466.exe

However I can also leave that line in the style-file, and delete some 
other lines, and routing will work again. There seems to be no clear 
pattern (except that the bug go introduced with rev 2448). I use the 
same line in my openmtbmap, and there the routing error doesn't happen.


-- 
keep on biking and discovering new trails

Felix
openmtbmap.org & www.velomap.org



More information about the mkgmap-dev mailing list