remove-short-arcs config bug

There seems to be a bug in the way the config file for mkgmap is read. All options I tried can be switched on with "=yes" and off with "=no". E.g.: transparent=no tdbfile=yes route=yes If I try the same with the remove-short-arcs option (i.e. "remove-short-arcs=yes") I get an error for r1364. If I put "remove-short-arcs" on a line without "=yes" it works. java.lang.NumberFormatException: For input string: "yes" at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source) at java.lang.Double.parseDouble(Unknown Source) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5XmlHandler.<init>(Osm5XmlHandler.java:131) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5MapDataSource.load(Osm5MapDataSource.java:71) at uk.me.parabola.mkgmap.main.MapMaker.loadFromFile(MapMaker.java:148) at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:56) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:187) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:185) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Exiting - if you want to carry on regardless, use the --keep-going option

Hi Ralf,
There seems to be a bug in the way the config file for mkgmap is read. All options I tried can be switched on with "=yes" and off with "=no". E.g.:
transparent=no tdbfile=yes route=yes
If I try the same with the remove-short-arcs option (i.e. "remove-short-arcs=yes") I get an error for r1364. If I put "remove-short-arcs" on a line without "=yes" it works.
From the mkgmap options help: --remove-short-arcs[=MinLength] Merge nodes to remove short arcs that can cause routing problems. If MinLength is specified (in metres), arcs shorter than that length will be removed. If a length is not specified, only zero-length arcs will be removed. It expects a number, not yes/no/whatever. Cheers, Mark
participants (2)
-
Mark Burton
-
Ralf Kleineisel