logo separator

[mkgmap-dev] splitter with --polygon-desc-file crashes

From 7770 7770 at foskan.eu on Wed Feb 16 17:58:23 GMT 2022

Hi.
Just after splitter reports that it stats with the second country (estonia in 
lower case is the country name within the polygon file).
--resolution=15 combined with --max-nodes=75000 did not change...

Some of the output:

Rounded map coverage is (55.634765625,19.7314453125) to 
(60.029296875,28.2568359375)
Splitting nodes into areas containing a maximum of 75 000 nodes each...
splitting distinct part of latvia
Highest node count in a single grid element is 83 999
Highest node count in a single grid element within the bounding polygon is 
77 110
...
continues.....

Then splitter reports "splitting distinct part of estonia" thereafter:

java.lang.NullPointerException
        at 
uk.me.parabola.splitter.solver.DensityMap.getNodeCount(DensityMap.java:156)
        at 
uk.me.parabola.splitter.solver.EnhancedDensityMap.prepare(EnhancedDensityMap.java:
83)
        at 
uk.me.parabola.splitter.solver.EnhancedDensityMap.<init>(EnhancedDensityMap.java:
43)
        at 
uk.me.parabola.splitter.solver.SplittableDensityArea.prepare(SplittableDensityArea.java:
339)
        at 
uk.me.parabola.splitter.solver.SplittableDensityArea.split(SplittableDensityArea.java:
177)
        at 
uk.me.parabola.splitter.solver.SplittableDensityArea.split(SplittableDensityArea.java:
237)
        at 
uk.me.parabola.splitter.solver.AreasCalculator.calcAreas(AreasCalculator.java:
228)
        at uk.me.parabola.splitter.Main.split(Main.java:227)
        at uk.me.parabola.splitter.Main.start(Main.java:121)
        at uk.me.parabola.splitter.Main.main(Main.java:81)


I can add the full output if it may be of any use.

Regards
Karl



On onsdag 16 februari 2022 18:35:51 CET Gerd Petermann wrote:
> Hi Karl,
> 
> I've not tried it yet. What is the error message from splitter?
> When experimenting with small files it sometimes makes sense to increase
> the resolution (14 or 15) and lower the --max-nodes values to get closer to
> a large scale result (like > 100 tiles or so)
> 
> Gerd
> 
> ________________________________________
> Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von 7770
> <7770 at foskan.eu> Gesendet: Mittwoch, 16. Februar 2022 17:52
> An: mkgmap-dev at lists.mkgmap.org.uk
> Betreff: [mkgmap-dev] splitter with --polygon-desc-file crashes
> 
> Hi.
> I have asked long ago about this particular problem i have and it was long
> time ago i last tried, but now i did again. It relates to splitter and usage
> of --polygon-desc-file=
> 
> This is how i have tried:
> 1.  Download data for Estonia and Latvia.
> https://download.geofabrik.de/europe/estonia-latest.osm.pbf
> https://download.geofabrik.de/europe/latvia-latest.osm.pbf
> 
> 2. convert to o5m and combine
> osmconvert estonia-latest.osm.pbf -o=estonia-latest.osm.o5m;
> osmconvert latvia-latest.osm.pbf -o=latvia-latest.osm.o5m;
> osmconvert estonia-latest.osm.o5m latvia-latest.osm.o5m -o=ee_lv.o5m;
> 
> 3. Prepare an osm-polygon file with one area for Estonia and one for Latvia.
> (file attached)
> 
> 4. Run splitter:
> java -Xmx2000m -jar ${SPLITTER} \
> --polygon-desc-file=./polygon_ee_lv.osm \
> --output-dir=ee_lv/splitted/ \
> --max-nodes=750000 \
> --no-trim \
> ee_lv.o5m
> 
> 
> While running this is seems like the Latvia part is fine, but the Estonia
> crashes.
> 
> 
> The error message doesn't say much (that i understand).
> But maybe it makes some sense to you?
> I imagine something is wrong with the polygon file, but i dont know what.
> 
> The polygon files is partially made in JOSM and partially manaully to re-use
> the same segments/edges which belong to both countries. (I could see that
> Gerd was using this concept in some example file for Germany and the alps,
> but i could not add two ways over one edge in JOSM, so i made manual
> chanegs in the file).
> I tried also making two separate boxes, one for each country, but that was
> just as bad (not reusing edges).
> 
> Anything that could be suggested that i change or try?
> 
> PS. i am trying this on small scale for two smaller countries, later i will
> apply it because i need to split europe in parts of max 4GB.
> 
> Regards
> Karl
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev





More information about the mkgmap-dev mailing list