logo separator

[mkgmap-dev] To do: If-Then-Else

From Andrzej Popowski popej at poczta.onet.pl on Tue Feb 14 11:12:39 GMT 2017

Hi Gerd,

it looks like your patch doesn't cooperate with my changes to default 
style (about aeroway). If I apply both patches, then mkgmap crashes 
using internal style. If I apply only your patch and use my version of 
default style in a folder, then I get following crash (no style-option 
used):

f:\OSM\_Test>java -Xmx12000m -jar e:\OSM\Tools\mkgmap-test\mkgmap.jar 
--code-page=1252 --preserve-element-order --output-dir=img 
--style-file=default1   --index --make-poi-index --route --housenumbers 
29483018.osm.pbf 29483015.osm.pbf
Time started: Tue Feb 14 12:06:59 CET 2017
java.lang.NullPointerException
         at java.util.TreeMap.compare(Unknown Source)
         at java.util.TreeMap.put(Unknown Source)
         at java.util.TreeSet.add(Unknown Source)
         at java.util.AbstractCollection.addAll(Unknown Source)
         at java.util.TreeSet.addAll(Unknown Source)
         at java.util.TreeSet.<init>(Unknown Source)
         at 
uk.me.parabola.mkgmap.osmstyle.StyledConverter.parseStyleOption(StyledConverter.java:249)
         at 
uk.me.parabola.mkgmap.osmstyle.StyledConverter.<init>(StyledConverter.java:219)
         at 
uk.me.parabola.mkgmap.reader.osm.OsmMapDataSource.createConverter(OsmMapDataSource.java:293)
         at 
uk.me.parabola.mkgmap.reader.osm.OsmMapDataSource.setupHandler(OsmMapDataSource.java:187)
         at 
uk.me.parabola.mkgmap.reader.osm.bin.OsmBinMapDataSource.load(OsmBinMapDataSource.java:49)
         at 
uk.me.parabola.mkgmap.reader.osm.OsmMapDataSource.load(OsmMapDataSource.java:138)
         at 
uk.me.parabola.mkgmap.main.MapMaker.loadFromFile(MapMaker.java:154)
         at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:52)
         at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:265)
         at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:261)
         at java.util.concurrent.FutureTask.run(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(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
Number of ExitExceptions: 1
Time finished: Tue Feb 14 12:06:59 CET 2017
Total time taken: 266ms

-- 
Best regards,
Andrzej



More information about the mkgmap-dev mailing list