WMS Layer with SLD config in mapfile
Jacolin Yves
yjacolin at FREE.FR
Fri Nov 9 10:37:53 PST 2007
Hi list,
Please, if anyone could change the doc [1], section 3.2.2 :
"wms_mystyle_sld" doesn't exist, we have to use "wms_style_mystyle_sld" !
Half a day looking for why it doesn't work, at least I could spend a nice week
end now :)
Best regard,
Y.
[1] http://mapserver.gis.umn.edu/docs/howto/wms_client
Le Friday 09 November 2007 19:14:16 Jacolin Yves, vous avez écrit :
> 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.09407019
>9& 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