[mapserver-users] mapserver 6.4.1 - special characters in legend

Carmen Delia Hernández Pérez cdhernandez at tenerife.es
Wed Apr 15 05:10:25 PDT 2015


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
                     END
          END

and the content of  fontset.txt  is

Arial   ARIAL.TTF


and i get "Campos de f.tbol" in green color but u character it´s yet wrong

[cid:image001.jpg at 01D07774.9B0CBF80]

I had this service published with old mapserver version (5.x) and windows server, and only i have in my myfile
LEGEND
                     KEYSIZE 30 12
END

and it worked well.
________________________________
De: thomas bonfort [mailto:thomas.bonfort at gmail.com]
Enviado el: miércoles, 15 de abril de 2015 11:38
Para: Carmen Delia Hernández Pérez
Asunto: Re: [mapserver-users] mapserver 6.4.1 - special characters in legend


Use a truetype font for your legend.

--
Thomas
On Apr 15, 2015 12:36 PM, "Carmen Delia Hernández Pérez" <cdhernandez at tenerife.es<mailto:cdhernandez at tenerife.es>> wrote:
Hi!

I am installing Mapserver 6.4.1 on CentOS 7 for publish  WMS services. I have been installing all dependencies and I compiled mapserver. Mapserver works. The WMS services work well except with legends  generation . In layers with one special character ( accent, ñ ) in its title, legend is wrong.

For example:
LAYER
                          NAME "Campos_futbol"
                          STATUS ON
                          METADATA
                                       "ows_title"          "Campos de fútbol"

                          ...

When I do one GetLegendGraphic query it returns "Campos de f.tbol" in layer description because the "u character  accented" is wrong.

I don´t know where is the problem because when I do one GetFeatureInfo query  or  one GetCapabilities query,  these characters are show correctly. My apache has  ISO-8859-1 encoding by default.
------------------------------------------------------------------------------------------------------------------


GetFeatureInfo results:



Layer 'Campos_futbol'

  Feature 38:

    NOMBRE = 'Campo de Fútbol de La Matanza'

------------------------------------------------------------------------------------------------------------------
GetCapabilities results:

<?xml version="1.0" encoding="ISO-8859-1"?>

........

<Layer queryable="1" opaque="0" cascaded="0">
<Name>Campos_futbol</Name>
<Title>Campos de fútbol</Title>

------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------


Someone has idea where can be the problem? Can it be I have some library incorrect?

My Mapserver  is configured so:

# mapserv -v

MapServer version 6.4.1 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=WCS_SERVER INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE


Thanks in advance!!

Carmen

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20150415/ff6fabd0/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 1504 bytes
Desc: image001.jpg
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20150415/ff6fabd0/attachment-0001.jpg>


More information about the mapserver-users mailing list