
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