[mkgmap-dev] Commit r4587: Improve AngleChecker (patch arcHeading_v2.patch by Ticker Berkin with small changes)
From svn commit svn at mkgmap.org.uk on Thu Oct 22 08:59:36 BST 2020
Version mkgmap-r4587 was committed by gerd on Thu, 22 Oct 2020 Improve AngleChecker (patch arcHeading_v2.patch by Ticker Berkin with small changes) "Move decision about when to use compactDir initialHeadings from RouteNode to AngleChecker. The current code checks if any headings from a RouteNode share the same compactDir/4-bit sector and, if so, revert to the full/8-bit value. Overlaid roads triggered this, also sharp angles that couldn't be widened, probably when many paths converge at a road. AngleChecker::fixSharpAngles was coded on the basis that compactDirs are used and it tested/increased angles based on this 4-bit step, but if these are then represented in 8-bit format, the encode angle could be much (up to 22.5 degrees) less that the code was expecting and result in turning delays in route calculations. Recode fixSharpAngles to work in degrees but choose the thresholds to be good for compactDirs. Test the resultant angles and only use compactDirs if there are no roads in the same or adjacent 4-bit sectors. Not allowing Adjacent is necessary because, in compactDirs format, if there is a path in the opposite sector to the road and the road continuation is the adjacent sector, Garmin gives a "turn to stay on road" pop-up, but with 8-bit headings it doesn't. This is slightly different from the following case because this concerns an angle that doesn't need to be "unsharpened" as it isn't permitted for vehicles to make this turn. When increasing an angle, change the heading of the lower class/speed road in preference to the major road. This helps prevent the "turn to stay on road" type pop-ups when the lead-off road was more straight-on than the main road and one-way tagging possibly missing. Handle simple (<= 2 RouteArcs) RouteNodes as special cases, giving slight efficiency improvements. Add some diagnostics for showing RouteNodes and RouteArcs in an area. Tidy up normalisation of headings. Fix some bugs." http://www.mkgmap.org.uk/websvn/revision.php?repname=mkgmap&rev=4587
- Previous message: [mkgmap-dev] Polygon fill
- Next message: [mkgmap-dev] [mkgmap-svn] Commit r4587: Improve AngleChecker (patch arcHeading_v2.patch by Ticker Berkin with small changes)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list