By the way, we ended up using regexps and <LocationMatch /> in apache to fetch
getlegendgraphic requests to the layers in question. 

It would be nice if GetLegendGraphic on a given layer returned the same image
(or html) as overriden in Layer metadata (GetCapabilitites) though. Desktop GIS
(QGIS, ESRI etc) all use the metadata from GetCapabilities to render the
legend, but web-gis doing a GetLegendGraphic directly on the layer would not
render the same image/html.

-Bjørn Ove

Bjørn Ove Grøtan:
> That would possibly work if I had one or two classes for the given layers. 
> Will check out, thanks.
> 
> By the way, I'm also looking into using overriden legends for line symbology, 
> for which I have a lot of classes for.
> Splitting up the current composite legend png in individual png is of course 
> possible, but tedious work.
> 
> -- 
> Kind regards
>  
> Bjørn Ove Grøtan
> 
> Jörg Thomsen (WhereGroup):
> > Hello Björn,
> > 
> > would KEYIMAGE help?
> > 
> > -> https://mapserver.org/mapfile/class.html
> > 
> > Am 12.01.21 um 10:36 schrieb Bjørn Ove Grøtan:
> > > Hello
> > > 
> > > I am familiar with how I can override legend urls (1) in the 
> > > GetCapabilities-document, 
> > > but when calling GetLegendGraphic directly on the layer the layer 
> > > metadata for 
> > > legend graphic is not affected. 
> > > 
> > > The issue I'm having is some cartographies will not generate a 
> > > representative legend
> > > e.g. piecharts and v-line-shift style node-cartography (2)
> > > 
> > > Anyone have any input on how (if possible) to override the legend when 
> > > calling
> > > GetLegendGraphic on individual layers?
> > > 
> > > (1) wms_style_<style_name>_legendurl_href 
> > > (https://mapserver.org/ogc/wms_server.html)
> > > (2) v-line-shift 
> > > (https://mapserver.org/mapfile/symbology/construction.html#changing-the-center-of-a-point-symbol)
> > > 
> > 
> > 
> > Viele Grüße,
> > Jörg Thomsen
> > 
> > -- 
> > ---------------------------------------------
> > Aufwind durch Wissen!
> > Web-Seminare und Online-Schulungen
> > bei der www.foss-academy.com
> > ---------------------------------------------
> > 
> > Jörg Thomsen
> > WhereGroup GmbH
> > Bundesallee 23
> > 10717 Berlin
> > Germany
> > 
> > Fon: +49 (0)30 / 5130 278 74
> > Fax: +49 (0)30 / 5130 278 11        
> > 
> > joerg.thom...@wheregroup.com
> > www.wheregroup.com
> > 
> > Geschäftsführer:
> > Olaf Knopp, Peter Stamm
> > Amtsgericht Bonn, HRB 9885
> > 
> > -------------------------------
> > Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com
> > _______________________________________________
> > mapserver-users mailing list
> > mapserver-users@lists.osgeo.org
> > https://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users

_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to