WMS Layer with SLD config in mapfile
Jacolin Yves
yjacolin at FREE.FR
Fri Nov 9 10:14:16 PST 2007
Hi,
I am setting a WMS LAYER in my mapfile with a SLD xml file in the METADATA but
it seems that my remote WMS mapserver does not use the SLD xml file, here is
my Layer objet definition in my mapfile :
LAYER
NAME "fond_wms"
TYPE RASTER
STATUS ON
CONNECTION "http://www2.myhost.com/cgi-restricted-bin/mapserv?"
CONNECTIONTYPE WMS
METADATA
"wms_srs" "EPSG:27582"
"wms_name" "cadastre,orthophoto,zae,zac"
"wms_server_version" "1.0.0"
"wms_format" "image/jpeg"
"wms_exceptions_format" "application-vnd.ogc.se_inimage"
"wms_transparent" "false"
"wms_style" "default"
"wms_default_sld" "http://www2.myhost.com/LPdI/test.xml"
END
END
If I try to use directly the WMS resquest in the navigator, the final map is
correct :
http://www2.myhost.com/cgi-restricted-bin/mapserv_wms?
LAYERS=geosignal,orthophoto,zae,zac&
BBOX=601145.6388854936,2424122.2621656144,604743.970275728,2426768.094070199&
REQUEST=GetMap&VERSION=1.0.0&SERVICE=WMS&WIDTH=680&HEIGHT=500&
SRS=EPSG:27582&EXCEPTIONS=application-vnd.ogc.se_inimage&FORMAT=jpeg&
TRANSPARENT=false&SLD=http://www2.myhost/LPdI/test.xml
Any idea ?
Regards,
Y.
--
Yves Jacolin
---
http://softlibre.gloobe.org
More information about the MapServer-users
mailing list