[Mapserver-users] SLd GetMap & GetLegendGraphic
bartvde at xs4all.nl
bartvde at xs4all.nl
Wed Jun 2 01:15:58 PDT 2004
Hi Till,
Yes GetLegendGraphic can only be used on one layer (this is by spec and
not specific for Mapserver).
We will be doing some enhancements to the GetLegendGraphic operation in
the near future, see the following bug for a discussion of this:
http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=653
Best regards,
Bart
> Dear list,
>
> first of all I apalogize for the cross-posting!
>
> Since a few days I'm playing around with the SLD-extension of the WMS
> spec. which is implemented in umn-ms version 4.2.
>
> I googled for a lot material (e.g. mails on the list, docs and so on)
> and get managed to handle the "GetMap"-Request with SLD's - it works fine.
>
> Special thanks to DM Solutions for their document "mapserver_SLD.pdf"
> and their online-demos!! This is really helpful!
>
> I also found that there is the function "generateSLD( ) : void"
> implemented in mapscript, which allows to write the SLD from a mapfile
> (I guess virtually in a browser?). Did anybody use this till now and can
> commit a piece of script?
>
>
> Secondly I also played around with the "GetLegendGraphic"-Request with
> lesser success.
>
> First of all, the GetLegendRequest requires a "LAYER=" instead of
> "LAYERS" in the GetMap request - Am I right with the assumption that the
> specification that only one layer can be queried?
>
> My main problem is getting "usable" legends back, because mapserver
> always gives just one icon for the last class and not one for each class
> defined in the SLD doc. Is this not foreseen or I am just doing wrong? I
> use the same SLD as for a multi-filter for the GetMap Request which
> works fine.
>
> My URL is like that:
> http://smart/cgi-bin/mapserv42?map=/var/www/mapserver/a.map&SERVICE=WMS&VeRsIoN=1.1.1&Request=GetLegendGraphic&LAYER=Grenze&FORMAT=image%2Fpng
>
> Does anyone has some hints or ideas which could help me or will share
> his/her experiences with me?
>
>
> Thanks in advance!
>
> Till
> --
>
> NEU +++ NEU +++ NEU +++ NEU
>
> AveiN! ist Open Source
> Lizensiert unter der GNU GPL
>
> -----
>
> Dipl. Geogr. Till Adams
> terrestris, Paulsen&Adams GbR
> Siemensstr. 8 * 53121 Bonn
> Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57
> info at terrestris.de * www.terrestris.de
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list