
Am 20:59, schrieb Carlos Dávila:
I'm trying to build a sea-only map for Spain to combine it later with my routeable map. What I've done is: 1-Download natural=coastline ways for the desired bbox [1]. 2-Edit downloaded osm file in JOSM and close the land polygon in the North. I used segments of some 60 km for that. I can put resulting file on my site if anyone wants to download it. 3-Run mkgmap with the following options: java -Xmx500m -enableassertions -jar mkgmap.jar --generate-sea --latin1 --code-page=1252 --description="Costa Iberia" --family-name="Open Street Map" --family-id=20 --product-id=320 --series-name="OSM-Iberia-costa" --mapname=63240100 --tdbfile --style=sea --draw-priority=28 --transparent /home/carlos/JOSM/costa_peninsula.osm And I get the error below: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(ArrayList.java:547) at java.util.ArrayList.get(ArrayList.java:322) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5XmlHandler.concatenateWays(Osm5XmlHandler.java:1332) at Does anyone know what is the problem? [1] wget http://osmxapi.hypercube.telascience.org/api/0.6/way%5Bnatural=coastline%5D%... -O costa_peninsula.osm
There seems to be a way tagged as coastline without any points. This is not checked before accessing the points of this way. As a workaround you may find and remove the way from input data. Ronny