latin1 an index creation

Hi, would it be possible to add a hint in help=options, that --latin1 is needed for generating the index? Or change the code, that all strings for index-creation were automatically converted to latin1 and strings shown in the map are converted with --code-page. Don't know if this is possible. Henning

Hi On 24/04/12 10:22, aighes wrote:
would it be possible to add a hint in help=options, that --latin1 is needed for generating the index?
What is needed that you need the *same* code-page as was used to create the map. It works as far as I can tell even without any latin1 or code-page argument as long as everything is created without a code page. I will add a note in the help about that.
Or change the code, that all strings for index-creation were automatically converted to latin1 and strings shown in the map are converted with --code-page. Don't know if this is possible.
It shouldn't be too difficult to read the code-page and sort order that the individual tiles use and create the index with the same ones. If I have time I will have a look at doing that. ..Steve

Hi Steve, sorry for my late answer. I tried it again. If I use only --code-page=.... for my maps of Germany, Alps and Great Britain index wont be created. There are some tmp-files remaining. If I use --code-page=.... --latin1 everything is fine. My maps of Turkey, Scandinavia, BeNeLux, Poland-Czech, Denmark, Middle Asia and Patagonia works fine in both cases. Do you have any explanation for that? Henning Errormessage: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -63 at uk.me.parabola.imgfmt.app.srt.Sort$SrtCollator$PositionIterator.next(Sort.java:458) at uk.me.parabola.imgfmt.app.srt.Sort$SrtCollator.compareOneStrength(Sort.java:386) at uk.me.parabola.imgfmt.app.srt.Sort$SrtCollator.compare(Sort.java:353) at uk.me.parabola.imgfmt.app.mdr.PrefixIndex.createFromList(PrefixIndex.java:73) at uk.me.parabola.imgfmt.app.mdr.PrefixIndex.createFromList(PrefixIndex.java:99) at uk.me.parabola.imgfmt.app.mdr.Mdr17.addPois(Mdr17.java:100) at uk.me.parabola.imgfmt.app.mdr.MDRFile.writeSections(MDRFile.java:290) at uk.me.parabola.imgfmt.app.mdr.MDRFile.write(MDRFile.java:247) at uk.me.parabola.mkgmap.combiners.MdrBuilder.onFinishForDevice(MdrBuilder.java:382) at uk.me.parabola.mkgmap.combiners.GmapsuppBuilder.onFinish(GmapsuppBuilder.java:116) at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:440) at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:126) at uk.me.parabola.mkgmap.main.Main.main(Main.java:114) Am 29.04.2012 19:31, schrieb Steve Ratcliffe:
Hi
On 24/04/12 10:22, aighes wrote:
would it be possible to add a hint in help=options, that --latin1 is needed for generating the index? What is needed that you need the *same* code-page as was used to create the map. It works as far as I can tell even without any latin1 or code-page argument as long as everything is created without a code page.
I will add a note in the help about that.
Or change the code, that all strings for index-creation were automatically converted to latin1 and strings shown in the map are converted with --code-page. Don't know if this is possible. It shouldn't be too difficult to read the code-page and sort order that the individual tiles use and create the index with the same ones. If I have time I will have a look at doing that.
..Steve _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Note: the following error only happens using the index branch, if I use trunk it compiles fine. I continue here, because I get exactly the same error message, it is not related to missing --latin1 however: (for me it happens on several countries, though most go through fine. Smallest Geofabrik extract affected is slovakia, but also Germany, Bayern, Sachsen, and some others break due to this bug -- adding code-page=1252 in front of --latin1 doesn't help) c:\OpenMTBMap\maps>start /low /b /wait java -jar -Xms4000M -Xmx7000M c:\openmtbmap\mkgmap.jar --max-jobs=4 --generate-sea --latin1 "--style-file=c:\openmtbmap\new4" --nsis --index -- transparent --adjust-turn-headings --add-pois-to-areas --ignore-maxspeeds --reduce-point-density=3 --x-reduce-point-density-polygon=6 --link-pois-to-ways --precomp-sea=c:\openmtbmap\maps\sea --ignore- turn-restrictions --min-size-polygon=14 --remove-short-arcs=4 --description=openmtbmap_sk --show-profiles=0 --merge-lines --location-autofill=bounds,is_in,nearest --bounds=c:\openmtbmap\maps\bounds - -route --country-abbr=sk --country-name=slovakia --mapname=64090000 --family-id=6409 --product-id=1 --series-name=openmtbmap_slovakia_20.06.2012 --family-name=mtbmap_sk_20.06.2012 --tdbfile --overview -mapname=mapsetx --keep-going --area-name="slovakia_20.06.2012_openmtbmap.org" -c c:\openmtbmap\maps\template.slovakia 1>NUL Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -63 at uk.me.parabola.imgfmt.app.srt.Sort$SrtCollator$PositionIterator.next(Sort.java:468) at uk.me.parabola.imgfmt.app.srt.Sort$SrtCollator.compareOneStrength(Sort.java:396) at uk.me.parabola.imgfmt.app.srt.Sort$SrtCollator.compare(Sort.java:363) at uk.me.parabola.imgfmt.app.mdr.PrefixIndex.createFromList(PrefixIndex.java:73) at uk.me.parabola.imgfmt.app.mdr.PrefixIndex.createFromList(PrefixIndex.java:99) at uk.me.parabola.imgfmt.app.mdr.Mdr17.addPois(Mdr17.java:100) at uk.me.parabola.imgfmt.app.mdr.MDRFile.writeSections(MDRFile.java:301) at uk.me.parabola.imgfmt.app.mdr.MDRFile.write(MDRFile.java:258) at uk.me.parabola.mkgmap.combiners.MdrBuilder.onFinish(MdrBuilder.java:365) at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:440) at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:126) at uk.me.parabola.mkgmap.main.Main.main(Main.java:114)

Hi
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -63 at uk.me.parabola.imgfmt.app.srt.Sort$SrtCollator$PositionIterator.next(Sort.java:458) at uk.me.parabola.imgfmt.app.srt.Sort$SrtCollator.compareOneStrength(Sort.java:386)
Sorry I'd kind of overlooked this error until today. This was a result of making the --latin1 option exactly the same as --code-page=1252. I've now fixed it on the branch. If you use --code-page=1252 (without --latin1) on trunk you get exactly the same error. With the fix this will now work as well. ..Steve

thanks, fixed now. On 20.06.2012 13:52, Steve Ratcliffe wrote:
Hi
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -63 at uk.me.parabola.imgfmt.app.srt.Sort$SrtCollator$PositionIterator.next(Sort.java:458) at uk.me.parabola.imgfmt.app.srt.Sort$SrtCollator.compareOneStrength(Sort.java:386) Sorry I'd kind of overlooked this error until today. This was a result of making the --latin1 option exactly the same as --code-page=1252.
I've now fixed it on the branch.
If you use --code-page=1252 (without --latin1) on trunk you get exactly the same error. With the fix this will now work as well.
..Steve _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
participants (3)
-
aighes
-
Felix Hartmann
-
Steve Ratcliffe