[mapserver-users] Use of wms_style_default_legendurl_href parameter
Yves Jacolin
yves.jacolin at camptocamp.com
Fri Oct 28 05:17:52 PDT 2011
Hello,
I am trying to use wms_style_default_legendurl_href parameter (with his little
friends wms_style, wms_style_default_legendurl_width and height).
The GetLegendGraphic request is not working (I get wrong legend), log doesn't
show anything event if I set up DEBUG 5 in mapfile.
The layer used is a vector layer with one class. The legend showed is the
legend of the class, not the one from the url of
wms_style_default_legendurl_href.
Some parts of the MapFile:
/**********
LEGEND
STATUS ON
KEYSIZE 18 12
LABEL
FONT Vera
TYPE truetype
SIZE 8
COLOR 0 0 89
END
END
LAYER
NAME departement
TYPE POLYGON
STATUS ON
DATA geoFla
TEMPLATE foo
DUMP true
DEBUG 5
CLASS
NAME "Départements"
STYLE
WIDTH 1
OUTLINECOLOR 0 0 0
COLOR 255 255 192
END
END
METADATA
"wms_title" "Département" ##required
"wms_srs" "EPSG:27572"
wms_name "Departement"
wms_server_version "1.1.1" #obligatoire
wms_style "default"
wms_style_default_legendurl_height "37"
wms_style_defaultDEFAULT_width "264"
wms_style_default_legendurl_format "image/png"
wms_style_default_legendurl_href
"http://yjacolin.meije/ifremer/legende_chla.png"
END
END
***********/
Any idea?
Y.
--
Responsable Formation et Support
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel (France) : +33 4 79 26 57 98
Tel (Suisse) : +41 21 619 1031
Mob. : +33 6 18 75 42 21
Fax : 04 79 70 15 81
Mail : yves.jacolin at camptocamp.com
http://www.camptocamp.com
More information about the MapServer-users
mailing list