[Mapserver-users] SLD - wms_sld_url

Yewondwossen Assefa assefa at dmsolutions.ca
Tue May 11 15:05:14 EDT 2004


Joost,

  I just tried an example with wms_sld_url set with mapserver beta2 (as 
well as the cvs version) and It works for me.
  I do not see anything wrong in your example so not sure what is wrong 
(if xml and url are valid).

Later,


Van Ulden, Joost wrote:

> Hello all,
> 
> I am looking into SLD with MapServer.  It works fine if I add the path to an
> SLD doc to the url, but when I specify the path in the wms_sld_url metadata
> element the style does not get applied.  It works if I put the sld doc in
> the wms_sld_body.  Maybe I am way off but here is my layer snippet:
> 
> LAYER
>   NAME "Styled Rivers"
>   TYPE RASTER
>   STATUS ON
>   CONNECTION "http://127.0.0.1/scripts/mapserv.exe?map=wms.map"
>   CONNECTIONTYPE WMS
>   METADATA
>     "wms_srs"             "EPSG:4326"
>     "wms_name"            "Rivers"
>     "wms_server_version"  "1.1.0"
>     "wms_format"          "image/gif" 
>     "wms_sld_url"
> "http://127.0.0.1/mapserver/styles/sld_line_simple.xml"
>   END
> END
> 
> Any suggestions would be helpful.
> 
> Cheers,
> 
> Joost
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 


-- 
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------





More information about the mapserver-users mailing list