Overlays and routing

I've just discovered the overlays file but eveytime I use it routing breaks for any road where an overlay is used (mapsource either crashes or it just draws a straight line). These are very short routes (a few hundred meters) and work if I turn the overlay off. I'm confident the overlay is working because I can see the extra way in mapsource and GPSMapedit. Should routing work with an overlay or am I wasting my time? Details: Mkgmap version: 1122 overlays file contains just this: 0x123: 0x23, 0x02 the lines file contains (amongst lots of other non overlay things): highway=trunk & oneway=yes [0x123 road_class=3 road_speed=5 resolution 16] I've tried values other than 0x23 in the overlays, all produce the same result but values over about 0x2c don't display in mapsource.

MarkS wrote:
I've just discovered the overlays file but eveytime I use it routing breaks for any road where an overlay is used (mapsource either crashes or it just draws a straight line). These are very short routes (a few hundred meters) and work if I turn the overlay off.
I'm confident the overlay is working because I can see the extra way in mapsource and GPSMapedit.
Should routing work with an overlay or am I wasting my time?
Details:
Mkgmap version: 1122
overlays file contains just this:
0x123: 0x23, 0x02
the lines file contains (amongst lots of other non overlay things):
highway=trunk & oneway=yes [0x123 road_class=3 road_speed=5 resolution 16]
I've tried values other than 0x23 in the overlays, all produce the same result but values over about 0x2c don't display in mapsource.
0x23 is a non-routable type. Try 0x03 and 0x02 for example and it should work.
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Felix Hartmann wrote:
overlays file contains just this:
0x123: 0x23, 0x02
0x23 is a non-routable type. Try 0x03 and 0x02 for example and it should work.
I'd hoped that 0x02 would make the way routable and that 0x23 would then be used for extra decoration (in this case one way arrows on the road were being added by a type file that defines arrows for 0x23). If I enter: "0x123: 0x02, 0x03" in overlays won't this create two routable ways in exactly the same place? If I enter: "0x123: 0x02, 0x02" this would seem to create two routable ways of exactly the same type. But I can't add one way arrows. I feel like I'm missing something here.

There is a bug in the overlays handling that breaks routing. Please try the attached patch. I don't know whether it works with the current mkgmap, but revision 1136 should be fine. Regards Thilo

Thilo Hannemann wrote:
There is a bug in the overlays handling that breaks routing. Please try the attached patch. I don't know whether it works with the current mkgmap, but revision 1136 should be fine.
Thanks for the confirmation that the default version of mkgmap doesn't handle this. I tried the patch (and have to admit it is the first time I've compiled mkgmap myself - up to now I've only downloaded it so I could see what command line options there were). The patch worked fine on the tests I've run so far. I presume I was running against the latest version of mkgmap because I updated my copy of the code subversion last night. Thanks for your help on this.
participants (3)
-
Felix Hartmann
-
MarkS
-
Thilo Hannemann