Hello Yves, perhaps because wms_style requires wms_style_<style’s_name>_legendurl_width and you have mistyped this? > wms_style_defaultDEFAULT_width "264"
And what says the capabilities-xml about the legend-url? Perhaps your client ignores it uses the wrong url. Jörg Am 28.10.2011 14:17, schrieb Yves Jacolin: > 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. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Aufwind durch Wissen! Qualifizierte Open Source Schulungen bei der http://www.foss-akademie.de/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _________________________________________________ MapMedia Kartographie und raumbezogene Informationssysteme Gillweg 3, 14193 Berlin fon: +49 30 89 06 82-70 fax: +49 30 89 09 53-21 mail: [email protected] net: www.mapmedia.de _________________________________________________ Geschäftsführer: G. v. Tschirnhaus, J. Thomsen, P. Stamm Registergericht, Berlin - Amtsgericht Charlottenburg, HRB 89625, Umsatzsteuer-Identnummer: DE 813794062 _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
