logo separator

[mkgmap-dev] Problem with mdr creation (if contourline maps are included)

From Felix Hartmann extremecarver at googlemail.com on Thu Oct 15 15:56:22 BST 2009

I want to join contourline maps (created with mkgmap ~ rev 1230) with my 
normal maps and create an mdr index for them. This works fine as long as 
I only try to create an mdr/mdx index for my "normal maps", however when 
I include any contourline maps mkgmap crashes:

Can anyone identify the error easily?
(the maps in question are here: 
http://openmtbmap.x-nation.de/maps/mtbaustria.7z.zip (6*.img) and the 
contourlines theese 
http://openmtbmap.x-nation.de/maps/contourlines/openmtbmap_at_srtm.7z.zip 
(7*.img)

D:\Garmin\0mtb\mtbaustria2>start /low /b /wait java -enableassertions 
-jar -Xmx4800M d:/garmin/mkgmap_svn_mdr/dist/mkgmap.jar --family-id=7365 
--product-id=1 --overview-mapname=MDR --index --max-jobs=3 6*.img 7*.img
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -68
        at java.util.ArrayList.get(Unknown Source)
        at 
uk.me.parabola.imgfmt.sys.BlockTable.physFromLogical(BlockTable.java:112)
        at 
uk.me.parabola.imgfmt.sys.Dirent.getPhysicalBlock(Dirent.java:262)
        at uk.me.parabola.imgfmt.sys.FileNode.read(FileNode.java:156)
        at 
uk.me.parabola.imgfmt.app.BufferedImgFileReader.fillBuffer(BufferedImgFileReader.java:256)
        at 
uk.me.parabola.imgfmt.app.BufferedImgFileReader.get(BufferedImgFileReader.java:86)
        at 
uk.me.parabola.imgfmt.app.trergn.RGNFileReader.linesForSubdiv(RGNFileReader.java:147)
        at 
uk.me.parabola.imgfmt.app.map.MapReader.linesForLevel(MapReader.java:123)
        at 
uk.me.parabola.mkgmap.combiners.MdrBuilder.addStreets(MdrBuilder.java:201)
        at 
uk.me.parabola.mkgmap.combiners.MdrBuilder.onMapEnd(MdrBuilder.java:112)
        at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:358)
        at 
uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:124)
        at uk.me.parabola.mkgmap.main.Main.main(Main.java:121)


For the contourlines my style-file was very simple so I don't really 
understand how that could have caused the problems:
# Contours take their name from the elevation setting.
contour_ext=elevation_minor & ele>0
    { name '${ele|conv:m=>ft}'; }
    [0x20 resolution 23]
contour_ext=elevation_medium & ele>0
    { name '${ele|conv:m=>ft}'; }
    [0x21 resolution 22]
contour_ext=elevation_major & ele>0
    { name '${ele|conv:m=>ft}'; }
    [0x22 resolution 20]
contour_ext=elevation & ele>0
    { name '${ele|conv:m=>ft}'; }
    [0x21 resolution 20]



More information about the mkgmap-dev mailing list