Hi Felix,

Please apply the attached patch to mkgmap - keep the v2 bbox patch as
well - try processing those Austria and Alps files again and let me
know what happens.

thanks
diff --git a/src/uk/me/parabola/imgfmt/app/trergn/RGNFileReader.java b/src/uk/me/parabola/imgfmt/app/trergn/RGNFileReader.java
index 2532f6e..4711d2a 100644
--- a/src/uk/me/parabola/imgfmt/app/trergn/RGNFileReader.java
+++ b/src/uk/me/parabola/imgfmt/app/trergn/RGNFileReader.java
@@ -114,8 +114,8 @@ public class RGNFileReader extends ImgReader {
 			}
 			p.setLabel(l);
 
-			p.setDeltaLong(reader.getChar());
-			p.setDeltaLat(reader.getChar());
+			p.setDeltaLong((short)reader.getChar());
+			p.setDeltaLat((short)reader.getChar());
 
 			if (hasSubtype) {
 				byte st = reader.get();
@@ -157,8 +157,8 @@ public class RGNFileReader extends ImgReader {
 			}
 			line.setLabel(label);
 
-			line.setDeltaLong(reader.getChar());
-			line.setDeltaLat(reader.getChar());
+			line.setDeltaLong((short)reader.getChar());
+			line.setDeltaLat((short)reader.getChar());
 
 			int len;
 			if ((type & 0x80) == 0)
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to