<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi Paul,<br></div><div><br></div><div>I think all the code functions are in place to do the bulk of this work, and this would be a nice addition to MapServer. Sharing SLD between applications is a huge benefit. If it is possible to apply SLD from a URL it should also be possible to apply SLD from disk. </div><div><br></div><div>I wouldn't be a huge fan of embedding SLD directly in a Mapfile (although the CONNECTION parameter can accept large chunks of OGRVRTDataSource XML as long as quotes are escaped). <br></div><div><br></div><div>Seth<br></div><div><br></div><div id="sig62266145"><div class="signature">--<br></div><div class="signature">web:<a href="https://geographika.net">https://geographika.net</a> & <a href="https://mapserverstudio.net">https://mapserverstudio.net</a><br></div><div class="signature">twitter: @geographika<br></div></div><div><br></div><div>On Tue, Jan 16, 2024, at 6:11 PM, Paul via MapServer-users wrote:<br></div><blockquote type="cite" id="qt" style=""><div class="qt-yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div dir="ltr">mapserver has capability to use SLD to style a layer, by appending sld to request<br></div><div dir="ltr"><br></div><div dir="ltr">unfortunately there is currently no option to use sld as part of mapfile to style a layer<br></div><div dir="ltr"><br></div><div dir="ltr">what do you think to add this as a new feature to next version?<br></div><div dir="ltr"><br></div><div dir="ltr">syntax could be something like this:<br></div><div dir="ltr"><br></div><div dir="ltr"><div><p class="qt-ydp5d2c6be9MsoNormal"><span>LAYER</span><br></p><p class="qt-ydp5d2c6be9MsoNormal"><span> 
STYLEITEM "sld://mysldfile.xml" # relative path</span><br></p><p class="qt-ydp5d2c6be9MsoNormal"><span> 
CLASS</span><br></p><p class="qt-ydp5d2c6be9MsoNormal"><span> 
END</span><br></p><p class="qt-ydp5d2c6be9MsoNormal"><span>END</span><br></p></div><div>Alternative to introduce it also as embedded SLD, but the mix of ms syntax and xml is not very nice.<br></div></div></div><div>_______________________________________________<br></div><div>MapServer-users mailing list<br></div><div><a href="mailto:MapServer-users@lists.osgeo.org">MapServer-users@lists.osgeo.org</a><br></div><div><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br></div><div><br></div></blockquote><div><br></div></body></html>