[mapserver-users] Legend and labels
Sylvain Perrinel
sylvain.perrinel at agriculture.gouv.fr
Wed Mar 19 09:09:08 PDT 2008
Hello I have another question about the labels of the legend.
I haven't the same legend if I use
TRANSPARENT TRUE or not in the OUTPUTFORMAT block.
It seems that the antialising option doesn't work for the legend with
Transparent Option. And I want to use transparency for the general map
to stack some maps from Mapserver in a document.
Here is my Outputformat:
OUTPUTFORMAT
NAME "png"
MIMETYPE "image/png"
DRIVER "GD/PNG"
EXTENSION "png"
IMAGEMODE "RGBA"
TRANSPARENT FALSE
FORMATOPTION "INTERLACE=OFF"
END
and my legend block :
LEGEND
IMAGECOLOR 255 255 255
KEYSIZE 20 10
KEYSPACING 5 2
LABEL
ANGLE 0.000000
ANTIALIAS TRUE
FONT "Vera-sans"
MAXSIZE 10
MINSIZE 10
SIZE 10
TYPE TRUETYPE
BUFFER 0
COLOR 0 0 0
FORCE FALSE
MINDISTANCE -1
MINFEATURESIZE -1
OFFSET 0 0
PARTIALS TRUE
POSITION AUTO
END
OUTLINECOLOR 0 0 0
POSITION AUTO
STATUS ON
END
You can see an example enclosed in the mail.
Thanks again
--
Sylvain Perrinel
Ministère de l'Agriculture
SG/SM/SDSI/CERIT
Département d'Information Géographique
B.P. 12668 - 31326 Castanet-Tolosan Cedex
Tel : 05 61 28 92 76
Web: http://sigsiti.national.agri
http://bdnt.national.agri
http://georepertoire.national.agri
http://sig.geoweb.auzeville.agri
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 47e139e9_6041_8.png
Type: image/png
Size: 8202 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080319/bb40135b/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 47e12269_706c_a.png
Type: image/png
Size: 11659 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080319/bb40135b/attachment-0001.png>
More information about the MapServer-users
mailing list