logo separator

[mkgmap-dev] splitter r433 released

From Gerd Petermann GPetermann_muenchen at hotmail.com on Tue Mar 15 07:05:05 GMT 2016

Hi Michael,


sorry, it seems that I commented the new code for a last test and forgot

to revert that change before committing it. Please use r435 instead.


Gerd



________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Michael Schlenstedt <schlenn at gmail.com>
Gesendet: Dienstag, 15. März 2016 06:52
An: Development list for mkgmap
Betreff: Re: [mkgmap-dev] splitter r433 released

Hi Gerd,

I tried it but no success. Seems to be the same error like before:

Counting nodes of precompiled sea data ...
Bounding box 72.421875 3.515625 73.125 4.218749999
java.lang.IndexOutOfBoundsException: Index: 0
        at java.util.Collections$EmptyList.get(Unknown Source)
        at crosby.binary.Osmformat$DenseInfo.getVersion(Unknown Source)
        at uk.me.parabola.splitter.BinaryMapParser.parseDense(BinaryMapParser.java:115)
        at crosby.binary.BinaryParser.parse(Unknown Source)
        at crosby.binary.BinaryParser.handleBlock(Unknown Source)
        at crosby.binary.file.FileBlock.process(Unknown Source)
        at crosby.binary.file.BlockInputStream.process(Unknown Source)
        at uk.me.parabola.splitter.PrecompSeaReader.processMap(PrecompSeaReader.java:83)
        at uk.me.parabola.splitter.Main.calculateAreas(Main.java:624)
        at uk.me.parabola.splitter.Main.split(Main.java:258)
        at uk.me.parabola.splitter.Main.start(Main.java:187)
        at uk.me.parabola.splitter.Main.main(Main.java:157)
uk.me.parabola.splitter.SplitFailedException: Index: 0
        at uk.me.parabola.splitter.PrecompSeaReader.processMap(PrecompSeaReader.java:96)
        at uk.me.parabola.splitter.Main.calculateAreas(Main.java:624)
        at uk.me.parabola.splitter.Main.split(Main.java:258)
        at uk.me.parabola.splitter.Main.start(Main.java:187)
        at uk.me.parabola.splitter.Main.main(Main.java:157)


I will try to test this with a smaller test file. I merge two files with osmosis before I pass this to splitter: One with contour lines (OSM files from GlobalMapper) and a Geofabrik extract from OpenStreetMap.

Maybe something is wrong with the GlobalMapper exports....

2016-03-15 6:23 GMT+01:00 Gerd Petermann <GPetermann_muenchen at hotmail.com<mailto:GPetermann_muenchen at hotmail.com>>:

Hi Michal,


I've committed r434 to fix this problem. The same solution should work in JOSM, so I'll

try to pass this information to the JOSM devs as well.


Gerd



________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces at lists.mkgmap.org.uk>> im Auftrag von Michael Schlenstedt <schlenn at gmail.com<mailto:schlenn at gmail.com>>
Gesendet: Montag, 14. März 2016 20:24
An: Development list for mkgmap
Betreff: Re: [mkgmap-dev] splitter r433 released

Hi Gerd,

Argh, sorry. I posted the wrong error message from my first test... Splitter recognized the Polygonfile corrctly. However, splitter crashes with the following error:

Time started: Mon Mar 14 20:07:55 CET 2016
Map is being split for resolution 13:
 - area boundaries are aligned to 0x800 map units (0.0439453125 degrees)
 - areas are multiples of 0x800 map units wide and high
Processing D:/Karten/map_merged_sorted.pbf
Bounding box -179.99990000000003 -13.011650000000001 179.99990000000003 84.52666
10.000.000 nodes processed... id=-2001683857
[...]
990.000.000 nodes processed... id=3971228872
Elapsed time: 10m 26s   Memory: Current 421MB (225MB used, 196MB free) Max 7282MB
in 1 file
Time: Mon Mar 14 20:20:03 CET 2016
Exact map coverage read from input file(s) is (-13.011631965637207,-179.9998927116394) to (84.52664136886597,179.9998927116394)
Exact map coverage after applying bounding box of polygon-file is (3.644092082977295,56.67825222015381) to (41.09657049179077,103.260498046875)
Counting nodes of precompiled sea data ...
Bounding box 72.421875 3.515625 73.125 4.218749999
java.lang.IndexOutOfBoundsException: Index: 0
        at java.util.Collections$EmptyList.get(Unknown Source)
        at crosby.binary.Osmformat$DenseInfo.getVersion(Unknown Source)
        at uk.me.parabola.splitter.BinaryMapParser.parseDense(BinaryMapParser.java:114)
        at crosby.binary.BinaryParser.parse(Unknown Source)
        at crosby.binary.BinaryParser.handleBlock(Unknown Source)
        at crosby.binary.file.FileBlock.process(Unknown Source)
        at crosby.binary.file.BlockInputStream.process(Unknown Source)
        at uk.me.parabola.splitter.PrecompSeaReader.processMap(PrecompSeaReader.java:83)
        at uk.me.parabola.splitter.Main.calculateAreas(Main.java:624)
        at uk.me.parabola.splitter.Main.split(Main.java:258)
        at uk.me.parabola.splitter.Main.start(Main.java:187)
        at uk.me.parabola.splitter.Main.main(Main.java:157)
uk.me.parabola.splitter.SplitFailedException: Index: 0
        at uk.me.parabola.splitter.PrecompSeaReader.processMap(PrecompSeaReader.java:96)
        at uk.me.parabola.splitter.Main.calculateAreas(Main.java:624)
        at uk.me.parabola.splitter.Main.split(Main.java:258)
        at uk.me.parabola.splitter.Main.start(Main.java:187)
        at uk.me.parabola.splitter.Main.main(Main.java:157)





Am 14.03.2016 um 16:47 schrieb Gerd Petermann:

Hi Micheal,

I guess you did not specify the file as an option
use something like java -jar splitter.jar --polygon-file=mapborder_V2.poly [other options]   xyz.osm.pbf

Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Michael Schlenstedt <schlenn at gmail.com><mailto:schlenn at gmail.com>
Gesendet: Montag, 14. März 2016 16:43
An: Development list for mkgmap
Betreff: Re: [mkgmap-dev] splitter r433 released

Hi Gerd,

until now I always used osmosis to cut of the bounding area. Now I would like
to test splitter (I expect better results), but spliiter complained that the
polygon file is not a valid OSM XML file:

uk.me.parabola.splitter.SplitFailedException: ERROR: file mapborder_V2.poly is
not a valid OSM XML file

But splitter's documentation says it should be in Osmosis Polygon Filter File
Format (which isn't OSM XML format, please see
http://wiki.openstreetmap.org/wiki/Osmosis/Polygon_Filter_File_Format).

Which ist the right format fpr splitter? And if it should be in OSM XML
format, should it be tagged as area, polygon or something else?

Thanks,
Michael

_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk<mailto:mkgmap-dev at lists.mkgmap.org.uk>
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk<mailto:mkgmap-dev at lists.mkgmap.org.uk>
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev



_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk<mailto:mkgmap-dev at lists.mkgmap.org.uk>
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20160315/eb6751c6/attachment-0001.html>


More information about the mkgmap-dev mailing list