Hi guys,

I ran into a problem where my map failed to generate properly with mkgmap
when the mapid used with splitter had more than 9 digits. I've attached a
patch for splitter to check for a mapid with more than 9 digits.

Thanks, Ben
diff --git a/src/uk/me/parabola/splitter/Main.java b/src/uk/me/parabola/splitter/Main.java
index 8b1284d..b7923e9 100644
--- a/src/uk/me/parabola/splitter/Main.java
+++ b/src/uk/me/parabola/splitter/Main.java
@@ -323,6 +323,9 @@ public class Main {
 			}
 		}
 		mapId = params.getMapid();
+		if (mapId > 99999999) {
+			System.err.println("The --mapid parameter must less than 9 digits. Resetting to 63240001.");
+		}
 		maxNodes = params.getMaxNodes();
 		description = params.getDescription();
 		geoNamesFile = params.getGeonamesFile();
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to