Hi,
If mapid starts with a zero, splitter writes an incorrect template.args
file. The attached patch fixes it.
Thanks,
N.
Index: src/uk/me/parabola/splitter/Main.java
===================================================================
--- src/uk/me/parabola/splitter/Main.java (revision 170)
+++ src/uk/me/parabola/splitter/Main.java (working copy)
@@ -441,12 +441,12 @@
w.println("# for each one.");
for (Area a : areas) {
w.println();
- w.format("mapname: %d\n", a.getMapId());
+ w.format("mapname: %08d\n", a.getMapId());
if (a.getName() == null)
w.println("# description: OSM Map");
else
w.println("description: " + a.getName());
- w.format("input-file: %d.osm.gz\n", a.getMapId());
+ w.format("input-file: %08d.osm.gz\n", a.getMapId());
}
w.println();
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev