<div dir="ltr">Thanks a lot for the quick solution - it compiled fine now (on Antarctica - Russia will need some more time but I'm positive the bug is fixed).</div><div class="gmail_extra"><br><div class="gmail_quote">On 13 April 2018 at 16:56, Gerd Petermann <span dir="ltr"><<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Felix,<br>
<br>
thanks for repoorting. I think this happened with tiles at 180°.<br>
Please use r4160 or r4161 (overlaps branch)<br>
<br>
Gerd<br>
P.S. A cycling map in this area ?<br>
<br>
______________________________<wbr>__________<br>
Von: mkgmap-dev <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkgmap-dev-bounces@lists.<wbr>mkgmap.org.uk</a>> im Auftrag von Felix Hartmann <<a href="mailto:extremecarver@gmail.com">extremecarver@gmail.com</a>><br>
Gesendet: Freitag, 13. April 2018 15:32:06<br>
An: Development list for mkgmap<br>
Betreff: [mkgmap-dev] Again - java.lang.<wbr>ArrayIndexOutOfBoundsException<wbr>: on      DEM creation<br>
<div><div class="h5"><br>
On compiling contourlines with DEM of Antarctica - I get this error:<br>
<br>
java.lang.<wbr>ArrayIndexOutOfBoundsException<wbr>: 7<br>
        at uk.me.parabola.mkgmap.reader.<wbr>hgt.HGTConverter.prepReader(<wbr>HGTConverter.java:408)<br>
        at uk.me.parabola.mkgmap.reader.<wbr>hgt.HGTConverter.fillArray(<wbr>HGTConverter.java:269)<br>
        at uk.me.parabola.mkgmap.reader.<wbr>hgt.HGTConverter.getElevation(<wbr>HGTConverter.java:149)<br>
        at uk.me.parabola.mkgmap.reader.<wbr>hgt.HGTConverter.getHeights(<wbr>HGTConverter.java:633)<br>
        at uk.me.parabola.imgfmt.app.dem.<wbr>DEMSection.calcTiles(<wbr>DEMSection.java:139)<br>
        at uk.me.parabola.imgfmt.app.dem.<wbr>DEMSection.<init>(DEMSection.<wbr>java:84)<br>
        at uk.me.parabola.imgfmt.app.dem.<wbr>DEMFile.calc(DEMFile.java:112)<br>
        at uk.me.parabola.mkgmap.build.<wbr>MapBuilder.makeMap(MapBuilder.<wbr>java:341)<br>
        at uk.me.parabola.mkgmap.main.<wbr>MapMaker.makeMap(MapMaker.<wbr>java:107)<br>
        at uk.me.parabola.mkgmap.main.<wbr>MapMaker.makeMap(MapMaker.<wbr>java:69)<br>
        at uk.me.parabola.mkgmap.main.<wbr>Main$1.call(Main.java:290)<br>
        at uk.me.parabola.mkgmap.main.<wbr>Main$1.call(Main.java:286)<br>
        at java.util.concurrent.<wbr>FutureTask.run(FutureTask.<wbr>java:266)<br>
        at java.util.concurrent.<wbr>ThreadPoolExecutor.runWorker(<wbr>ThreadPoolExecutor.java:1149)<br>
        at java.util.concurrent.<wbr>ThreadPoolExecutor$Worker.run(<wbr>ThreadPoolExecutor.java:624)<br>
        at java.lang.Thread.run(Thread.<wbr>java:748)<br>
java.lang.<wbr>ArrayIndexOutOfBoundsException<br>
java.lang.<wbr>ArrayIndexOutOfBoundsException<br>
<br>
<br>
It happens with:<br>
java -ea -jar -Xmx20000M /home/contourlines/mkgmap.jar --dem=/home/contourlines/hgt/<wbr>VIEW1/,/home/contourlines/hgt/<wbr>SRTM1v3.0/,/home/contourlines/<wbr>hgt/VIEW3/,/home/contourlines/<wbr>hgt/SRTM3v3.0/ --dem-dists=5520 --dem-poly=/home/contourlines/<wbr>bounds/antarctica.poly --max-jobs=1 --reduce-point-density=3.6 --transparent --description=openmtbmap-srtm-<wbr>ANTA-13-Apr-2018 --style-file=srtm --latin1 --draw-priority=24 --mapname=74990000 --family-id=7499 --keep-going --product-id=1 --series-name=openmtbmap-srtm-<wbr>ANTA-13-Apr-2018 --family-name=mtbmap-srtm-<wbr>ANTA-2018 --overview-mapname=mapsetz --tdbfile 74990034.osm.pbf 74990037.osm.pbf 74990038.osm.pbf<br>
<br>
I've uploaded the style srtm (though that is largely irrelevant I guess) and the 3 offending pbf files here: <a href="https://openmtbmap.org/broken.zip" rel="noreferrer" target="_blank">https://openmtbmap.org/broken.<wbr>zip</a><br>
Even though I guess to reproduce you also need the hgt files.<br>
<br>
I also get this error on a couple of pbf tiles created by splitter and phyghtmap of Russia (and therefore also on Asia continent).<br>
<br>
I'm not sure if the fault is in the pbf or in the hgt - As I don't know which hgt file would be coressponding here is the command used with phyghtmap - it will download the relevant hgt files.<br>
<br>
phyghtmap --earthexplorer-user=XXXXX  --earthexplorer-password=XXXXX --jobs=6 --polygon=/home/contourlines/<wbr>bounds/antarctica.poly --step=20 --no-zero-contour --void-range-max=-420 --output-prefix=anta --line-cat=500,100 --start-node-id=10000000 --start-way-id=10000000 --source=view1,view3,srtm3,<wbr>srtm1 --max-nodes-per-way=230 --max-nodes-per-tile=0 --pbf<br>
<br>
--<br>
Felix Hartman - Openmtbmap.org & VeloMap.org<br>
Schusterbergweg 32/8<br>
6020 Innsbruck<br>
Austria - Österreich<br>
</div></div>______________________________<wbr>_________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noreferrer" target="_blank">http://www.mkgmap.org.uk/<wbr>mailman/listinfo/mkgmap-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div><div>Felix Hartman - Openmtbmap.org & VeloMap.org<br></div>Schusterbergweg 32/8<br></div><div>6020 Innsbruck<br></div></div>Austria - Österreich</div></div></div></div>
</div>