enhancing Legend
Jacolin Yves
yjacolin at FREE.FR
Tue Nov 6 04:50:29 PST 2007
Le Tuesday 06 November 2007 13:28:55 Milo van der Linden, vous avez écrit :
> Hello list!
>
> I am currently using a GetLegendGraphic request to mapserver to return a
> legend that is presented in Google Earth in combination with a WMS
> layer, all to great satisfaction of the customer, what a power this WMS
> server capability has!
>
> The legend only contains the thematic symbols for my layer, but I would
> like to add a header to differentiate it in my Google Earth window. Is
> it possible to add static text and maybe draw a line in a legend? Does
> anyone has some sample mapfile snippet showing how to do this?
>
> Kind regards,
>
> Milo van der Linden
Hi Milo,
I don't think it is possible to add an header to the GetLegendGraphic request.
You can watch the documentation for the LEGEND object mapfile but I don't
think that the header will run for the WMS service.
Note that I had the same problem about using this for my application. I
choosed to use mapserv in CGI mode to get my legend, but this is not OGC
compliant ;) The other way is to use a GetSTyles request, but you have to
build the legend icon by yourself, not so difficult for plain polygon icone,
more difficult if you use hached icons. But by this way you could manage the
layout exactly as you want :)
If you develop something to create icon from an SLD XML data, I will be really
interesting for :)
Anyway, if some developpers implyed in OGC standards could give their opinion
about this "issue" :) My opinion is that all pictures have to be processed in
the server side and the client side will just create the layout. That's imply
that GetLegendGraphic "is not good" because it creates layout in the server
side and GetStyles "is not good" because the icons have to be create on the
client side.
However, I develop my application using OGC standard and Mapserver and I am
really happy of this two technologies.
Best regards,
Y.
--
Yves Jacolin
---
http://softlibre.gloobe.org
More information about the MapServer-users
mailing list