[mkgmap-dev] Problem in AngleFixer?
From Ticker Berkin rwb-mkgmap at jagit.co.uk on Mon Aug 12 11:55:29 BST 2024
Hi Thorsten and Gerd I've looked at examples around my area where a higher class way terminates (at a sharp angle) in the middle of a way or 2 straight ways and, in none that I found, would it be a problem to adjust the angle of the higher class road. I've re-done the patch to this effect, also adding in test for sameName arcs and simplifying the logic slightly such that it is easier to change the testing order. @Thorsten: can you try this; it should fix your first example. It might fix the second but, because the continuous way has quite an angle at the junction, even moving the turn-off road away from it might not be enough to trigger the turn- instruction. @Gerd: The new logic doesn't attempt to handle roads crossing. For straightEnough it just looks at the angle either side of the sharp angle. For sameWay and sameRoad it just looks at the adjacent arcs either side of the sharp angle. For 3 arc junctions this is correct but for 4 or more arcs it might help but is not complete. I'm going to use this for a while. There are some diags that could be removed later. Regards Ticker On Mon, 2024-08-12 at 09:34 +0000, Gerd Petermann wrote: > Hi Ticker, > > I also thought about sameWay as a criteria, but remember that this is likely > to fail. > I see quite often that tracks are drawn with 90° angles and another one is > added which also > has a 90° angle at the same crossing. No idea why, but it isn't wrong. > Same situation in residential areas where multiple ways are needed but all > have the same name > and type (e.g. a paved living_street). > > ciao > Gerd -------------- next part -------------- A non-text attachment was scrubbed... Name: AngleChecker_v2.patch Type: text/x-patch Size: 7554 bytes Desc: not available URL: <https://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20240812/25184988/attachment-0001.bin>
- Previous message: [mkgmap-dev] Problem in AngleFixer?
- Next message: [mkgmap-dev] Problem in AngleFixer?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list