<div dir="ltr">Hi all,<br>
<br>
I'm encountering the same problem.<br>
<br>
What happens actually is that the capabilities tell that the online<br>
resource for the legend points to the url I set in<br>
"wms_style_[style’s_name]_legendurl_href".<br>
<br>
[...]<br>
<Style><br>
          <Name>MyStyle</Name><br>
          <Title>MyStyle</Title><br>
          <LegendURL width="256" height="256"><br>
             <Format>image/png</Format><br>
             <OnlineResource<br>
xmlns:xlink="<a href="http://www.w3.org/1999/xlink" target="_blank">http://www.w3.org/1999/xlink</a>" xlink:type="simple"<br>
xlink:href="<a href="http://path.to/the_image.png" target="_blank">http://path.to/the_image.png</a>"/><br>
          </LegendURL><br>
        </Style><br>
[...]<br>
<br>
However, when querying the layer's legend with a standard<br>
GetLegendGraphic request, the legend image is still generated by<br>
Mapserver.<br>
Is it on purpose? Is the client supposed to read the capabilities to<br>
ensure that it asks for the correct legend?<br>
<br>
Thanks,<br>
Pierre<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Oct 28, 2011 at 2:17 PM, Yves Jacolin <span dir="ltr"><<a href="mailto:yves.jacolin@camptocamp.com" target="_blank">yves.jacolin@camptocamp.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I am trying to use wms_style_default_legendurl_href parameter (with his little<br>
friends wms_style, wms_style_default_legendurl_width and height).<br>
<br>
The GetLegendGraphic request is not working (I get wrong legend), log doesn't<br>
show anything event if I set up DEBUG 5 in mapfile.<br>
<br>
The layer used is a vector layer with one class. The legend showed is the<br>
legend of the class, not the one from the url of<br>
wms_style_default_legendurl_href.<br>
<br>
Some parts of the MapFile:<br>
/**********<br>
  LEGEND<br>
      STATUS ON<br>
      KEYSIZE 18 12<br>
      LABEL<br>
          FONT Vera<br>
          TYPE truetype<br>
          SIZE 8<br>
          COLOR 0 0 89<br>
      END<br>
  END<br>
<br>
  LAYER<br>
    NAME departement<br>
    TYPE POLYGON<br>
    STATUS ON<br>
    DATA geoFla<br>
    TEMPLATE foo<br>
    DUMP true<br>
    DEBUG 5<br>
    CLASS<br>
      NAME "Départements"<br>
      STYLE<br>
        WIDTH 1<br>
        OUTLINECOLOR  0 0 0<br>
        COLOR   255 255 192<br>
      END<br>
    END<br>
    METADATA<br>
      "wms_title"    "Département"   ##required<br>
      "wms_srs" "EPSG:27572"<br>
       wms_name "Departement"<br>
       wms_server_version "1.1.1" #obligatoire<br>
       wms_style "default"<br>
       wms_style_default_legendurl_height "37"<br>
       wms_style_defaultDEFAULT_width "264"<br>
       wms_style_default_legendurl_format "image/png"<br>
       wms_style_default_legendurl_href<br>
"<a href="http://yjacolin.meije/ifremer/legende_chla.png" target="_blank">http://yjacolin.meije/ifremer/legende_chla.png</a>"<br>
    END<br>
  END<br>
***********/<br>
<br>
Any idea?<br>
<br>
Y.<br>
--<br>
Responsable Formation et Support<br>
Camptocamp France SAS<br>
Savoie Technolac, BP 352<br>
73377 Le Bourget du Lac, Cedex<br>
<br>
Tel (France) : <a href="tel:%2B33%204%2079%2026%2057%2098" value="+33479265798">+33 4 79 26 57 98</a><br>
Tel (Suisse) : <a href="tel:%2B41%2021%20619%201031" value="+41216191031">+41 21 619 1031</a><br>
Mob. : <a href="tel:%2B33%206%2018%2075%2042%2021" value="+33618754221">+33 6 18 75 42 21</a><br>
Fax : 04 79 70 15 81<br>
Mail : <a href="mailto:yves.jacolin@camptocamp.com">yves.jacolin@camptocamp.com</a><br>
<a href="http://www.camptocamp.com" target="_blank">http://www.camptocamp.com</a><br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Pierre GIRAUD<br><a href="http://www.camptocamp.com">http://www.camptocamp.com</a>
</div>