logo separator

[mkgmap-dev] splitter: "Cannot store node id 9223372036854775807, this value is reserved"

From Gerd Petermann gpetermann_muenchen at hotmail.com on Mon Oct 29 18:33:41 GMT 2018

Hi Bernhard,

I would not say that the error cannot be in the file produced by srtm2osm. The bad id might come after splitter complains
about the wrong order. You may try osmconvert with --out-statistics to check the file.
But be careful, current 64 Bit Windows version of osmconvert seems to be buggy, make sure to use the one from the english wiki page with large file support.

Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Bernhard Hiller <bhil at gmx.de>
Gesendet: Montag, 29. Oktober 2018 19:16:31
An: mkgmap-dev at lists.mkgmap.org.uk
Betreff: Re: [mkgmap-dev] splitter: "Cannot store node id 9223372036854775807, this value is reserved"

Hi Gerd,
I am investigation the origin of that id.
I tried to run splitter on the file generated by srtm2osm. After half an
hour, I got following exception:
E:\Maps\Development\Thai.1>"C:\Program
Files\Java\jre1.8.0_121\bin\java.exe" -Xmx6G -jar  "C:\Program Files
(x86)\OpenStreetMap\splitter-r590\splitter.jar"
E:\Maps\Raw\Thai.DEM\SouthEastAsia_Ele_Unsorted.osm
--description="BernieMap  Bike Thai"     --mapid=47120001
--max-nodes=3000000     --max-threads=4 --write-kml=splitter.kml
--no-trim  1>splitter.log
Error: Node ids are not sorted. Use e.g. osmosis to sort the input data.
This is not supported with keep-complete=true or --problem-list
uk.me.parabola.splitter.SplitFailedException: Node ids are not sorted
         at
uk.me.parabola.splitter.MultiTileProcessor.storeCoord(MultiTileProcessor.java:501)
         at
uk.me.parabola.splitter.MultiTileProcessor.processNode(MultiTileProcessor.java:127)
         at
uk.me.parabola.splitter.AbstractMapProcessor.consume(AbstractMapProcessor.java:62)
         at
uk.me.parabola.splitter.OSMFileHandler.execute(OSMFileHandler.java:159)
         at
uk.me.parabola.splitter.ProblemLists.calcMultiTileElements(ProblemLists.java:255)
         at uk.me.parabola.splitter.Main.useProblemLists(Main.java:487)
         at uk.me.parabola.splitter.Main.start(Main.java:125)
         at uk.me.parabola.splitter.Main.main(Main.java:79)
which is OK, because srtm2osm does not write its output in some sorted way.

Next, I tried to run splitter on the file produced by osmosis after
sorting. Now, it did not take long to get the exception:
E:\Maps\Development\Thai.1>"C:\Program
Files\Java\jre1.8.0_121\bin\java.exe" -Xmx6G -jar  "C:\Program Files
(x86)\OpenStreetMap\splitter-r590\splitter.jar"
E:\Maps\Raw\Thai.DEM\SouthEastAsia_Ele.osm.pbf --description="BernieMap
Bike Thai"     --mapid=47120001 --max-nodes=3000000     --max-threads=4
--write-kml=splitter.kml        --no-trim  1>splitter.log
Error: Cannot store node id 9223372036854775807, this value is reserved.
uk.me.parabola.splitter.SplitFailedException: Maybe the IDs are not
sorted. This is not supported with keep-complete=true or --problem-list
         at
uk.me.parabola.splitter.MultiTileProcessor.storeCoord(MultiTileProcessor.java:508)
         at
uk.me.parabola.splitter.MultiTileProcessor.processNode(MultiTileProcessor.java:127)
         at
uk.me.parabola.splitter.AbstractMapProcessor.consume(AbstractMapProcessor.java:62)
         at
uk.me.parabola.splitter.OSMFileHandler.execute(OSMFileHandler.java:159)
         at
uk.me.parabola.splitter.ProblemLists.calcMultiTileElements(ProblemLists.java:255)
         at uk.me.parabola.splitter.Main.useProblemLists(Main.java:487)
         at uk.me.parabola.splitter.Main.start(Main.java:125)
         at uk.me.parabola.splitter.Main.main(Main.java:79)

That is, the wrong node id exists in the file of sorted elevation data.
I cannot find out if osmosis or srtm2osm produced that node id.

Kind regards,
Bernhard

Am 29.10.2018 um 08:04 schrieb Gerd Petermann:
> Hi Bernhard,
>
> splitter cannot store the id values 0 and 9223372036854775807 (which is Long.MAX_VALUE)
> No idea why your process whould create an id with such a value, looks like an error to me.
> The following message about the sort is misleading :-(
>
> Do you have an idea where this id comes from?
>
> Gerd
>
> ________________________________________
> Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Bernhard Hiller <bhil at gmx.de>
> Gesendet: Montag, 29. Oktober 2018 07:48:02
> An: mkgmap-dev at lists.mkgmap.org.uk
> Betreff: [mkgmap-dev] splitter: "Cannot store node id 9223372036854775807, this value is reserved"
>
> Hi all,
> I tried to create a map of south east asia with contourlines. DEM data
> are from Viewfinderpanoramas, and were processed with srtm2osm. It took
> 7 h to generate a 40GB *.osm file, and another 1 hour to sort the data
> with osmosis into a 600 MB *.pbf file. A region from 0-23N and 94-109E
> was cut from the asia extract from Geofabrik with osmosis (some 400 MB).
> These two files were combined with osmosis.
>
> When I call splitter on that file, I get the error message:
>
> Error: Cannot store node id 9223372036854775807, this value is reserved.
> uk.me.parabola.splitter.SplitFailedException: Maybe the IDs are not
> sorted. This is not supported with keep-complete=ue or --problem-list
>           at
> uk.me.parabola.splitter.MultiTileProcessor.storeCoord(MultiTileProcessor.java:508)
>           at
> uk.me.parabola.splitter.MultiTileProcessor.processNode(MultiTileProcessor.java:127)
>           at
> uk.me.parabola.splitter.AbstractMapProcessor.consume(AbstractMapProcessor.java:62)
>           at
> uk.me.parabola.splitter.OSMFileHandler.execute(OSMFileHandler.java:159)
>           at
> uk.me.parabola.splitter.ProblemLists.calcMultiTileElements(ProblemLists.java:255)
>           at uk.me.parabola.splitter.Main.useProblemLists(Main.java:487)
>           at uk.me.parabola.splitter.Main.start(Main.java:125)
>           at uk.me.parabola.splitter.Main.main(Main.java:79)
>
> The splitter command is:
> E:\Maps\Development\Thai.1>"C:\Program
> Files\Java\jre1.8.0_121\bin\java.exe" -Xmx6G -jar  "C:\Program Files
> (x86)\OpenStreetMap\splitter-r590\splitter.jar"
> E:\Maps\Raw\SouthEastAsia_Complete.osm.pbf --description=ernieMap Bike
> Thai"     --mapidG120001 --max-nodes 00000     --max-threads=4
> --write-kml=slitter.kml        --no-trim  1>splitter.log
>
> Do I need to sort again after merging? Or is that a different issue?
> Thanks a lot for your hints.
>
> Kind regards,
> Bernhard
> _______________________________________________
> mkgmap-dev mailing list
> 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
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


More information about the mkgmap-dev mailing list