[Mapserver-DE] SLd GetMap & GetLegendGraphic

Till Adams adams at terrestris.de
Mit Jun 2 09:22:28 CEST 2004


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




This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)