Hi Gerd

In the October changes to arcs and headings I mistakenly removed a
variable needed for setting reverse arc direct headings, ie half the
route nodes had the wrong value. Routing mostly worked with this error
but occasionally threw up strange decisions on my eTrex HCx.

Patch attached - sorry about this.

Ticker
Index: src/uk/me/parabola/imgfmt/app/net/RoadNetwork.java
===================================================================
--- src/uk/me/parabola/imgfmt/app/net/RoadNetwork.java	(revision 4588)
+++ src/uk/me/parabola/imgfmt/app/net/RoadNetwork.java	(working copy)
@@ -204,7 +204,7 @@
 		double reverseDirectBearing = 0;
 		if (directLength > 0){
 			// bearing on rhumb line is a constant, so we can simply reverse
-			reverseDirectBearing += 180; // RouteArc will normalise
+			reverseDirectBearing = forwardDirectBearing + 180; // RouteArc will normalise
 		}
 		RouteArc reverseArc = new RouteArc(roadDef,
 						   node2, node1,
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to