I tried to commit the attached patch that changes the splitter's area
rounding to match mkgmap's new behaviour when rounding the overview map
bounding box but I wasn't allowed to do it. Could someone please commit
this for me.

Mark
diff --git a/src/uk/me/parabola/splitter/RoundingUtils.java b/src/uk/me/parabola/splitter/RoundingUtils.java
index eef18b3..f89922f 100644
--- a/src/uk/me/parabola/splitter/RoundingUtils.java
+++ b/src/uk/me/parabola/splitter/RoundingUtils.java
@@ -71,7 +71,7 @@ public class RoundingUtils {
 		int minLat = Math.max(b.getMinLat(), Utils.toMapUnit(-85.0d));
 		int maxLat = Math.min(b.getMaxLat(), Utils.toMapUnit(85.0d));
 
-		int roundedMinLat = roundDown(minLat, shift);
+		int roundedMinLat = roundUp(minLat, shift);
 		int roundedMaxLat = roundUp(maxLat, shift);
 		if ((roundedMinLat & alignment) != (roundedMaxLat & alignment)) {
 			// The new height isn't a multiple of twice the alignment. Fix it by pushing
@@ -87,7 +87,7 @@ public class RoundingUtils {
 		assert (roundedMaxLat - roundedMinLat) % doubleAlignment == 0 : "The area's height is not a multiple of " + doubleAlignment;
 
 		int roundedMinLon = roundDown(b.getMinLong(), shift);
-		int roundedMaxLon = roundUp(b.getMaxLong(), shift);
+		int roundedMaxLon = roundDown(b.getMaxLong(), shift);
 		if ((roundedMinLon & alignment) != (roundedMaxLon & alignment)) {
 			// The new width isn't a multiple of twice the alignment. Fix it by pushing
 			// the tile edge that moved the least out by another 'alignment' units.
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to