I discovered that the latitude value in the boundary nodes (NOD3) table
should have 180 degrees added to it (aka 0x800000) to make it
consistent with Garmin maps.

The fact that we can route between (our) tiles without this mod shows
that it doesn't really matter but we may as well be as authentic as
possible.

So, tiddly patch attached, please test it with regard to inter-tile
routing. I am not expecting anything to change.

Cheers,

Mark
diff --git a/src/uk/me/parabola/imgfmt/app/net/RouteNode.java b/src/uk/me/parabola/imgfmt/app/net/RouteNode.java
index 942e201..7d44497 100644
--- a/src/uk/me/parabola/imgfmt/app/net/RouteNode.java
+++ b/src/uk/me/parabola/imgfmt/app/net/RouteNode.java
@@ -194,7 +194,7 @@ public class RouteNode implements Comparable<RouteNode> {
 		assert isBoundary() : "trying to write nod3 for non-boundary node";
 
 		writer.put3(coord.getLongitude());
-		writer.put3(coord.getLatitude());
+		writer.put3(coord.getLatitude() + 0x800000); // + 180 degrees
 		writer.put3(offsetNod1);
 	}
 
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to