Re: [mkgmap-dev] [splitter patch] check for mapids with less than 9 digits

2013-11-28 Thread Ben Konrath
Hi Gerd,

Good catch. Thanks!

Ben


On 27 November 2013 14:48, Gerd Petermann
wrote:

> Hi Ben,
>
> thanks, I've also added a check to detect a case like --mapid=9900 in
> combination with > 99 areas.
> See r314.
>
> Gerd
>
> --
> Date: Wed, 27 Nov 2013 14:31:46 +0100
> From: b...@bagu.org
> To: mkgmap-dev@lists.mkgmap.org.uk
> Subject: [mkgmap-dev] [splitter patch] check for mapids with less than 9
> digits
>
>
> 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
>
> ___ mkgmap-dev mailing list
> mkgmap-dev@lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>
> ___
> mkgmap-dev mailing list
> mkgmap-dev@lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Re: [mkgmap-dev] [splitter patch] check for mapids with less than 9 digits

2013-11-27 Thread Gerd Petermann
Hi Ben,

thanks, I've also added a check to detect a case like --mapid=9900 in 
combination with > 99 areas.
See r314.

Gerd

Date: Wed, 27 Nov 2013 14:31:46 +0100
From: b...@bagu.org
To: mkgmap-dev@lists.mkgmap.org.uk
Subject: [mkgmap-dev] [splitter patch] check for mapids with less than 9    
digits

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


___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
  ___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

[mkgmap-dev] [splitter patch] check for mapids with less than 9 digits

2013-11-27 Thread Ben Konrath
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 > ) {
+			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