Opened 14 years ago
#3306 new defect
simple overriding of WMS named style not possible
Reported by: | bartvde | Owned by: | mapserverbugs |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | WMS Server | Version: | svn-trunk (development) |
Severity: | normal | Keywords: | |
Cc: |
Description
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