Hello list,
First of all Jacolin, thanks for the response.
I managed to "fake" a legend title by adding an empty class item as the
topmost class for the layer I create the thematic legend for. This class
item has no properties other then a name containing the text: "-- This
is my legend --"
Works good enough for me!
Jacolin Yves schreef:
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.
--
Milo van der Linden
skype: milovanderlinden <skype:milovanderlinden?add>
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
http://www.3dsite.nl
De informatie in dit bericht reflecteert mijn persoonlijke mening en
niet die van een bedrijf of instantie. Aan de informatie kunnen geen
rechten worden ontleend. Indien dit bericht onderdeel is van een forum,
mailing-list of community dan gelden automatisch de bij het betreffende
medium behorende voorwaarden. The information in this message reflects
my personal opinion and not that of a company or public body. All rights
reserved.If this message is contained in a mailing-list or community,
the rights on the medium are automatically adapted.