logo separator

[mkgmap-dev] location-autofill=nearest breaks compiling

From Gerd Petermann gpetermann_muenchen at hotmail.com on Sun Aug 18 08:30:48 BST 2013

Hi,

the problem is caused by a limit in the Garmin img format. The tile 55152011.osm.pbf 
contains many pois. It requires more than 0x3fffff bytes to store all the data, but
the format doesn't allow that. 
So, a quick  solution for you should be to use a smaller max-nodes value for splitter.

@Steve: 
I am not sure where a check is missing. It could be added to the Label.setOffset()  method
or to the POIRecord.write() method.
Please can you habe a look at it?

Gerd

> Date: Thu, 15 Aug 2013 22:51:11 +0200
> From: cdavilam at orangecorreo.es
> To: mkgmap-dev at lists.mkgmap.org.uk
> Subject: Re: [mkgmap-dev] location-autofill=nearest breaks compiling
> 
> You can get the input file at 
> http://mapas.alternativaslibres.es/british-isles.o5m I've been updating 
> it for several days and always got the same error.
> Used variables: export MAPA=British-Isles pais=british-isles FID=52 
> ABR=BRI MAXNODES=1800000 NAMETAG=name DRIVEON=left
> splitter:
> java -Xmx1500M -jar splitter.jar --max-nodes=$MAXNODES 
> --geonames-file=geonames/cities15000_$ABR.zip --mapid=551${FID}001 $pais.o5m
> mkgmap:
> java -Xmx2000m -ea -Dlog.config=logging.properties -jar mkgmap.jar 
> --output-dir=./tmp --bounds=bounds.zip --precomp-sea=sea --max-jobs 
> --route --latin1 --code-page=1252 --area-name=$MAPA 
> --family-name="OpenStreetMap $MAPA" --family-id=1$FID --product-id=1 
> --series-name="OSM-$MAPA" --overview-mapname=$ABR-1${FID} 
> --overview-mapnumber=551${FID}000 --name-tag-list=$NAMETAG --index 
> --road-name-pois=0x640a --process-destination --process-exits 
> --x-housenumbers --ignore-maxspeeds --reduce-point-density=4 
> --reduce-point-density-polygon=8 --polygon-size-limits="24:12, 18:10, 
> 16:0" --add-pois-to-areas --adjust-turn-headings --report-similar-arcs 
> --link-pois-to-ways --location-autofill=is_in,nearest 
> --drive-on-$DRIVEON --check-roundabouts --check-roundabout-flares 
> --license-file=license_ODbL.txt --copyright-message="OpenStreetMap 
> contributors, ODbL. See: http://www.openstreetmap.org/copyright" 
> --style=mio --check-styles -c $pais.args
> args file is splitter generated template.args + typ file added at the 
> end. I tried with default style with the same result.
> 
> El 15/08/13 22:29, GerdP escribió:
> > Hi Carlos,
> >
> > looks like a special case. Please post a link to the input file and all info
> > that is needed to reproduce
> > the problem.
> >
> > Gerd
> >
> >
> > Carlos Dávila-2 wrote
> >> Compiling British Isles map with location-autofill=is_in,nearest throws
> >> the following error:
> >> Exception in thread "main" java.lang.AssertionError: Invalid label
> >> offset found 105
> >>           at
> >> uk.me.parabola.imgfmt.app.lbl.LBLFileReader.fetchLabel(LBLFileReader.java:86)
> >>           at
> >> uk.me.parabola.imgfmt.app.lbl.LBLFileReader.readPoiInfo(LBLFileReader.java:351)
> >>           at
> >> uk.me.parabola.imgfmt.app.lbl.LBLFileReader.
> >> <init>
> >> (LBLFileReader.java:74)
> >>           at
> >> uk.me.parabola.mkgmap.combiners.FileInfo.lblInfo(FileInfo.java:326)
> >>           at
> >> uk.me.parabola.mkgmap.combiners.FileInfo.lblInfo(FileInfo.java:313)
> >>           at
> >> uk.me.parabola.mkgmap.combiners.FileInfo.imgInfo(FileInfo.java:259)
> >>           at
> >> uk.me.parabola.mkgmap.combiners.FileInfo.getFileInfo(FileInfo.java:152)
> >>           at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:545)
> >>           at
> >> uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:128)
> >>           at uk.me.parabola.mkgmap.main.Main.main(Main.java:119)
> >> Removing the "nearest" part of location-autofill it works fine. All
> >> other maps I compile with location-autofill=is_in,nearest also compile
> >> without problems. Any idea why this particular map may be going wrong?
> 
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20130818/f6251472/attachment.html 


More information about the mkgmap-dev mailing list