areas.poly from splitter

Gerd, I observed a minor issue, the splitter produces an areas.poly file which JOSM can't read: Unable to parse 1,004957e+01 as a number Seems it can only read decimal points instead of commas. Minko

Minko-2 wrote
I observed a minor issue, the splitter produces an areas.poly file which JOSM can't read:
Unable to parse 1,004957e+01 as a number
Seems it can only read decimal points instead of commas.
Minko
thanks, seems to be a locale problem. On my machine, splitter writes decimal points. I have to find out where this is configured. Gerd -- View this message in context: http://gis.19327.n5.nabble.com/areas-poly-from-splitter-tp5741029p5741033.ht... Sent from the Mkgmap Development mailing list archive at Nabble.com.

Minko-2 wrote
I see, maybe it's something in my windows preferences? I'm using Vista 32 bits.
Yes, you can set that somewhere. I don't know where. If you can compile splitter, please try this patch, which adds Locale.ROOT, to the format call: Index: AreaList.java =================================================================== --- AreaList.java (revision 264) +++ AreaList.java (working copy) @@ -263,7 +263,7 @@ if (point.y == nextPoint.y && point.y == lastPoint.y) continue; } - pw.println(String.format(" %e %e",Utils.toDegrees(point.x) ,Utils.toDegrees(point.y))); + pw.println(String.format(Locale.ROOT, " %e %e",Utils.toDegrees(point.x) ,Utils.toDegrees(point.y))); } pw.println("END"); -- View this message in context: http://gis.19327.n5.nabble.com/areas-poly-from-splitter-tp5741029p5741037.ht... Sent from the Mkgmap Development mailing list archive at Nabble.com.

Thanks Gerd, I think I have find it, but I prefer not to change the overall windows settings. So it's better to set this in the splitter. I'm not familiar with patches though.

Minko, You can try r266 from the problem-list branch: http://www.mkgmap.org.uk/download/splitter-problem-list-r266.jar Gerd
Date: Wed, 19 Dec 2012 16:01:56 +0100 From: ligfietser@online.nl To: mkgmap-dev@lists.mkgmap.org.uk Subject: Re: [mkgmap-dev] areas.poly from splitter
Thanks Gerd, I think I have find it, but I prefer not to change the overall windows settings. So it's better to set this in the splitter. I'm not familiar with patches though. _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

You can try r266 from the problem-list branch: http://www.mkgmap.org.uk/download/splitter-problem-list-r266.jar
Thanks Gerd, splitter-problem-list-r267.jar is fine now
participants (3)
-
Gerd Petermann
-
GerdP
-
Minko