[mapserver-dev] overriding WMS style name

Bart van den Eijnden bartvde at osgis.nl
Wed Feb 3 09:52:19 EST 2010


Hi list,

is it correct that it is currently not possible to override the WMS style name "default" without providing a legendURL in the METADATA?

What I want to do is just change the name to INSPIRE:DEFAULT, but then have Mapserver fill in the GetLegendGraphic url automatically like it normally does.

But it does not seem possible at the moment.

So now I have to use (using MS 5.6.1):

      wms_style "INSPIRE:DEFAULT"
      "wms_style_INSPIRE:DEFAULT_legendurl_href" "http://foo"
      "wms_style_INSPIRE:DEFAULT_legendurl_format" "image/png"
      "wms_style_INSPIRE:DEFAULT_legendurl_width" "100"
      "wms_style_INSPIRE:DEFAULT_legendurl_height" "50"

where http://foo would be the url to GetLegendGraphic.

Whereas I would want to use:

      wms_style "INSPIRE:DEFAULT"

Best regards,
Bart


More information about the mapserver-dev mailing list