
Hi, I discoverd, that the overviewmap doesn't use the given codepage (see http://www.aighes.de/data/map.png and http://www.aighes.de/data/overviewmap.png ). Isthis a limitation of overview maps or is it just a bug? Henning

Hi Henning, Henning Scholland wrote
I discoverd, that the overviewmap doesn't use the given codepage (see http://www.aighes.de/data/map.png and http://www.aighes.de/data/overviewmap.png ). Isthis a limitation of overview maps or is it just a bug?
I think it is a bug, but I don't know where to fix it :-( @Steve: Can you help here, please? Gerd -- View this message in context: http://gis.19327.n5.nabble.com/overview-map-and-codepage-tp5763481p5763482.h... Sent from the Mkgmap Development mailing list archive at Nabble.com.

I think I found a solution. Attached is a patch, compiled binary is here: http://files.mkgmap.org.uk/download/125/mkgmap.jar ov_codepage_v1.patch <http://gis.19327.n5.nabble.com/file/n5763509/ov_codepage_v1.patch> Possibly the copyright info is also not yet ok: "program licenced under GPL v2" I guess it should contain a copy of the message written to the ovm_*.img files? Or should the command line parm override the text? Gerd GerdP wrote
Hi Henning, Henning Scholland wrote
I discoverd, that the overviewmap doesn't use the given codepage (see http://www.aighes.de/data/map.png and http://www.aighes.de/data/overviewmap.png ). Isthis a limitation of overview maps or is it just a bug? I think it is a bug, but I don't know where to fix it :-(
@Steve: Can you help here, please?
Gerd
-- View this message in context: http://gis.19327.n5.nabble.com/overview-map-and-codepage-tp5763481p5763509.h... Sent from the Mkgmap Development mailing list archive at Nabble.com.

Sorry, doesn't work yet, München still comes out as Munchen. GerdP wrote
I think I found a solution. Attached is a patch, compiled binary is here: http://files.mkgmap.org.uk/download/125/mkgmap.jar
-- View this message in context: http://gis.19327.n5.nabble.com/overview-map-and-codepage-tp5763481p5763516.h... Sent from the Mkgmap Development mailing list archive at Nabble.com.

Steve Ratcliffe wrote
On 31/05/13 12:57, GerdP wrote:
Sorry, doesn't work yet, München still comes out as Munchen.
I believe that the attached patch is all that is needed. overview_cp2.patch (2K) <http://gis.19327.n5.nabble.com/attachment/5763526/0/overview_cp2.patch>
yes, that should work and I first coded it like that. I see a potential problem if one wants to create the tdbfile with something like java -jar mkgmap.jar --tdbfile *.img The user has to make sure that he uses exactly the same parms for codepage etc. and I think that was already a problem with the index? So I thought it would be better to extract the info from the *.img files. Gerd -- View this message in context: http://gis.19327.n5.nabble.com/overview-map-and-codepage-tp5763481p5763533.h... Sent from the Mkgmap Development mailing list archive at Nabble.com.

Here is version 2 of the patch. ov_codepage_v2.patch <http://gis.19327.n5.nabble.com/file/n5763527/ov_codepage_v2.patch> Compiled binary is here: http://files.mkgmap.org.uk/download/126/mkgmap.jar @Steve: I doubt that it already works with unicode or cp932. Can you double check the changes in CodeFunctions.createEncoderForLBL() ? Reg. the copyright: Will look at this tomorrow. It is not yet possible to configure the text. Gerd GerdP wrote
Sorry, doesn't work yet, München still comes out as Munchen.
-- View this message in context: http://gis.19327.n5.nabble.com/overview-map-and-codepage-tp5763481p5763527.h... Sent from the Mkgmap Development mailing list archive at Nabble.com.

On 31/05/13 14:19, GerdP wrote:
@Steve: I doubt that it already works with unicode or cp932. Can you double check the changes in CodeFunctions.createEncoderForLBL() ?
Where do you think the problem lies, in the reading or writing? It seems like it should work in every case that the index works. ..Steve

Hi Steve, Steve Ratcliffe wrote
On 31/05/13 14:19, GerdP wrote:
@Steve: I doubt that it already works with unicode or cp932. Can you double check the changes in CodeFunctions.createEncoderForLBL() ?
Where do you think the problem lies, in the reading or writing?
It seems like it should work in every case that the index works.
The problem was in the writing part (used for the overview map only), so I think I can commit the patch without risking side effects. Gerd -- View this message in context: http://gis.19327.n5.nabble.com/overview-map-and-codepage-tp5763481p5763577.h... Sent from the Mkgmap Development mailing list archive at Nabble.com.

Hi Gerd and Steve, works as expected! Great job! Henning Am 31.05.2013 15:19, schrieb GerdP:
Here is version 2 of the patch.
ov_codepage_v2.patch <http://gis.19327.n5.nabble.com/file/n5763527/ov_codepage_v2.patch>
Compiled binary is here: http://files.mkgmap.org.uk/download/126/mkgmap.jar
@Steve: I doubt that it already works with unicode or cp932. Can you double check the changes in CodeFunctions.createEncoderForLBL() ?
Reg. the copyright: Will look at this tomorrow. It is not yet possible to configure the text.
Gerd
GerdP wrote
Sorry, doesn't work yet, München still comes out as Munchen.
-- View this message in context: http://gis.19327.n5.nabble.com/overview-map-and-codepage-tp5763481p5763527.h... Sent from the Mkgmap Development mailing list archive at Nabble.com. _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

I discoverd, that the overviewmap doesn't use the given codepage (see http://www.aighes.de/data/map.png and http://www.aighes.de/data/overviewmap.png ). Is this a lim itation of overview maps or is it just a bug ?
Now you mention it, I saw too that München becomes Munchen and Köln > Koln on the overview maps ;-)
participants (4)
-
GerdP
-
Henning Scholland
-
Minko
-
Steve Ratcliffe