[mapserver-users] mapserver 6.4.1 - special characters in legend
Carmen Delia Hernández Pérez
cdhernandez at tenerife.es
Wed Apr 15 07:32:24 PDT 2015
THANK YOU ALL.
SOLVED.
-------
My mapfile is now as
LEGEND
KEYSIZE 30 12
LABEL
TYPE Truetype
FONT Arial
SIZE 9
COLOR 0 0 0
#ENCODING "ISO-8859-1" --- it´s not necessary in my case
END
END
In my old mapserver 5.x, I did not declared any LABEL section into the LEGEND and all worked well. It was the origin of the problem. it not was obligatory define one section LABEL into the LEGEND.
In the previous test I lacked the "type truetype".
Thanks again.
-----Mensaje original-----
De: thomas bonfort [mailto:thomas.bonfort at gmail.com]
Enviado el: miércoles, 15 de abril de 2015 15:05
Para: Carmen Delia Hernández Pérez
CC: mapserver-users at lists.osgeo.org
Asunto: Re: [mapserver-users] mapserver 6.4.1 - special characters in legend
Do yourself a favour and save your mapfile in UTF-8. This will be a
requirement anyways starting from version 7.0.
You need to set label->type=truetype and label->size=9 (i.e. in
pixels, not "large") for it to work.
--
thomas
On 15 April 2015 at 15:13, Carmen Delia Hernández Pérez
<cdhernandez at tenerife.es> wrote:
>
> Thanks but this solution does not work me.
>
> My enconding is "ISO-8859-1" that i think is the default encoding of Mapserver.
>
> My mapfile is saved with that encoding and although I put ENCODING tag in LABEL section of LEGEND this remains same.
>
> Do you know of what library depends legend generation? I think as I compile mapserver the problem can be in some library. Or can be related with some configuration of Centos7. I don´t know where to look more. I have used more "microsoft windows" enviromment.
>
>
> Thanks in advance.
> Carmen.
> -----Mensaje original-----
> De: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de Jörg Thomsen
> Enviado el: miércoles, 15 de abril de 2015 13:18
> Para: mapserver-users at lists.osgeo.org
> Asunto: Re: [mapserver-users] mapserver 6.4.1 - special characters in legend
>
> see below inline
>
> Am 15.04.2015 um 14:10 schrieb Carmen Delia Hernández Pérez:
>> Thanks but I have tried that option and it does not work.
>> I have for example in my mapfile
>>
>> FONTSET "DEPORTES_FUTBOL/fonts/fontset.txt"
>>
>> LEGEND
>> KEYSIZE 30 12
>> LABEL
>> FONT Arial
>> SIZE LARGE
>> COLOR 0 255 0
>
> ENCODING "UTF-8" # or whatever your mapfile is encoded in
>
>
>>
>> END
>> END
>
> Jörg
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list