You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#1 2013-06-14 23:56:14

thesurveyor
Member
Registered: 2013-06-14
Posts: 1

getting error in mkgmap

Hello,

I'm trying to create an Garmin map with

- splitter r304
- mkgmap r2646
- basemap style from  https://github.com/berndw1960/aiostyles : Many thanks to berndw for his beautiful style
- europe-latest.osm.pbf from Geofabrik : Many thanks for making the OSM exports available

I can split the europe-latest.osm.pbf into a lot of tiles. As I can see this works
Then I'm trying to create the garmin img's with mkgmap. But there is one tile (only one) which cannot be converted into img-File.
I always get the following error. I have stripped the command for mkgmap to a minimum, but the error still exists.

What I tried till now:
- using different splitter command, so that I get much more tiles - doesn't work
- I used splitter to split the tile :-) into 156 tiles - then I could create 155 imgs and 1 not :-(
- if I omit the style-file the I can create the img-File.

Is there anybody who can help?

Many thanks in advance.
TheSurveyor aka Gerd


D:\garmin_maps\tiles>java -Xmx1000M -ea -jar mkgmap.jar  --style-file=..\style\basemap_style 70010029.osm.pbf ..\style\basemap_typ.txt
Time started: Sat Jun 15 00:22:51 CEST 2013
java.lang.ArrayIndexOutOfBoundsException: 0
        at uk.me.parabola.imgfmt.app.trergn.Subdivision.createLine(Subdivision.java:310)
        at uk.me.parabola.mkgmap.build.MapBuilder$LineAddFilter.doFilter(MapBuilder.java:1217)
        at uk.me.parabola.mkgmap.build.LayerFilterChain.doFilter(LayerFilterChain.java:57)
        at uk.me.parabola.mkgmap.filters.LinePreparerFilter.doFilter(LinePreparerFilter.java:85)
        at uk.me.parabola.mkgmap.build.LayerFilterChain.doFilter(LayerFilterChain.java:57)
        at uk.me.parabola.mkgmap.filters.RemoveEmpty.doFilter(RemoveEmpty.java:61)
        at uk.me.parabola.mkgmap.build.LayerFilterChain.doFilter(LayerFilterChain.java:57)
        at uk.me.parabola.mkgmap.filters.LineSplitterFilter.doFilter(LineSplitterFilter.java:69)
        at uk.me.parabola.mkgmap.build.LayerFilterChain.doFilter(LayerFilterChain.java:57)
        at uk.me.parabola.mkgmap.filters.DouglasPeuckerFilter.doFilter(DouglasPeuckerFilter.java:100)
        at uk.me.parabola.mkgmap.build.LayerFilterChain.doFilter(LayerFilterChain.java:57)
        at uk.me.parabola.mkgmap.filters.SizeFilter.doFilter(SizeFilter.java:55)
        at uk.me.parabola.mkgmap.build.LayerFilterChain.doFilter(LayerFilterChain.java:57)
        at uk.me.parabola.mkgmap.filters.RoundCoordsFilter.doFilter(RoundCoordsFilter.java:80)
        at uk.me.parabola.mkgmap.build.LayerFilterChain.doFilter(LayerFilterChain.java:57)
        at uk.me.parabola.mkgmap.filters.PreserveHorizontalAndVerticalLinesFilter.doFilter(PreserveHorizontalAndVerticalLinesFilter.java:60)
        at uk.me.parabola.mkgmap.build.LayerFilterChain.doFilter(LayerFilterChain.java:57)
        at uk.me.parabola.mkgmap.build.LayerFilterChain.startFilter(LayerFilterChain.java:68)
        at uk.me.parabola.mkgmap.build.MapBuilder.processLines(MapBuilder.java:1046)
        at uk.me.parabola.mkgmap.build.MapBuilder.makeSubdivision(MapBuilder.java:737)
        at uk.me.parabola.mkgmap.build.MapBuilder.makeMapAreas(MapBuilder.java:672)
        at uk.me.parabola.mkgmap.build.MapBuilder.makeMap(MapBuilder.java:214)
        at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:120)
        at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:82)
        at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:243)
        at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:239)
        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Time finished: Sat Jun 15 00:23:23 CEST 2013
Total time taken: 31871ms

Offline

#2 2013-06-15 18:59:04

ligfietser
Member
Registered: 2008-10-09
Posts: 5,353
Website

Re: getting error in mkgmap

Hi,
I dont know exactly what all those errors are meaning, better ask it on the mgkmap mailing list.
If you have -ea (enable assertions) in your java command, maybe leaving it out might help to render this problematic tile.

Offline

Board footer

Powered by FluxBB