Hi list,
As discussed before, I think it's a bit confusing that Splitter has a
default "description" in it's template.args file that says "OSM Map".
The attached patch fixes this: it puts "#" before the description if you
didn't specify a --description.
This also helps --description in mkgmap, as it will work as advertised,
without hidden settings elsewhere.
This is the patch for Splitter, cleaned up (there was a spurious comment
in an unrelated file in the previous one).
Best regards,
Valentijn
Index: src/uk/me/parabola/splitter/Main.java
===================================================================
--- src/uk/me/parabola/splitter/Main.java (revision 82)
+++ src/uk/me/parabola/splitter/Main.java (working copy)
@@ -167,7 +167,7 @@
mapid = config.getProperty("mapid", config.getProperty("mapname", mapid));
overlapAmount = config.getProperty("overlap", overlapAmount);
maxNodes = config.getProperty("max-nodes", maxNodes);
- description = config.getProperty("description", "OSM Map");
+ description = config.getProperty("description");
resolution = config.getProperty("resolution", resolution);
if (resolution < 1 || resolution > 24) {
System.err.println("The --resolution parameter must be a value between 1 and 24. Resetting to 13.");
@@ -369,7 +369,8 @@
for (SubArea a : areaList.getAreas()) {
w.println();
w.format("mapname: %d\n", a.getMapid());
- w.println("description: " + description);
+ if (description==null) w.println("# description: OSM Map");
+ else w.println("description: " + description);
w.format("input-file: %d.osm.gz\n", a.getMapid());
}
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev