logo separator

MapSplitter problem (was Re: [mkgmap-dev] Commit: r759: Hack MapSplitter/MapArea to not put at most 0x100 lines in a div.)

From Robert Vollmert rvollmert-lists at gmx.net on Mon Dec 8 21:51:49 GMT 2008

Steve,

On Dec 2, 2008, at 23:39, svn commit wrote:
> Version 759 was commited by robert on 2008-12-02 22:39:22 +0000  
> (Tue, 02 Dec 2008)
>
> Hack MapSplitter/MapArea to not put at most 0x100 lines in a div.
>
> It appears to work as intended, but could use review.

there's an assert in RoadIndex.write asserting that the associated  
polyline is among the 256 first polylines in a subdivision (so its  
index fits in a byte). I was running into this, and thought I'd fixed  
it by the above change, but sletuffe ran into the error (see below).

I'm not really familiar with the MapBuilder/MapSplitter/trergn stuff,  
so could you perhaps have a look at this on occasion?

Cheers
Robert

Here's the bug report, copied from wiki.

unexpected crash, looks like the above
I ran this :
java -jar osmosis.jar --read-xml france.osm --bounding-box left=4.92  
right=6.92 top=46.57 bottom=44.57 --write-xml test-2x2.osm perl  
osm2mp.pl test-2x2.osm > test-2x2.mp java -enableassertions -Xmx1512M - 
jar ./mkgmap-nod/mkgmap.jar --route --gmapsupp test-2x2.mp
And mkgmap fails with :
Exception in thread "main" java.lang.AssertionError at  
uk.me.parabola.imgfmt.app.net.RoadIndex.write(RoadIndex.java:45) at  
uk.me.parabola.imgfmt.app.net.RoadDef.writeLevelDivs(RoadDef.java:158)  
at uk.me.parabola.imgfmt.app.net.RoadDef.writeNet1(RoadDef.java:114)  
at uk.me.parabola.imgfmt.app.net.NETFile.write(NETFile.java:61) at  
uk.me.parabola.mkgmap.build.MapBuilder.makeMap(MapBuilder.java:119) at  
uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:76) at  
uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:45) at  
uk.me.parabola.mkgmap.main.Main.processFilename(Main.java:148) at  
uk.me.parabola.mkgmap.CommandArgs$Filename.processArg(CommandArgs.java: 
355) at uk.me.parabola.mkgmap.CommandArgs.readArgs(CommandArgs.java: 
114) at uk.me.parabola.mkgmap.main.Main.main(Main.java:90)
I'm using the last svn version of... now the test mp file is located  
here (My sand box is here with files) I have no problem with the same  
center and a 1°x1° square, so something looks wrong somewhere around  
Sletuffe 20:12, 8 December 2008 (UTC)

http://beta.letuffe.org/garmin/test-2x2.mp
http://beta.letuffe.org/garmin/




More information about the mkgmap-dev mailing list