<div dir="ltr"><div>Hi Seth,</div><div><br></div><div>That seems to be a great addition, +1 from me.</div><div><br></div><div>I see you don't want to support to read SLD from online sources at this stage, but it would be relatively easy to allow specifying the SLD string directly in the feature attribute, since in some cases it is easier to store the data and the style at the same place. For example when the data is coming from a database table or view, it may be challenging to keep the database and the external files in sync. As soon as we can identify that the style string is SLD (for example it ends with </StyledLayerDescriptor>) we could probably call msSLDApplySLD from msLayerGetFeatureStyle directly (not requiring to read the content from a file at all)</div><div><br></div><div>Best regards,</div><div><br></div><div>Tamas</div><div><br></div><div><br></div><div><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Seth G via MapServer-dev <<a href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a>> ezt írta (időpont: 2024. febr. 10., Szo, 0:04):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
I've added a new RFC - MS RFC 138: Reference SLD files in Mapfiles at <a href="https://mapserver.org/development/rfc/ms-rfc-138.html" rel="noreferrer" target="_blank">https://mapserver.org/development/rfc/ms-rfc-138.html</a><br>
This would allow SLD files to be referenced in a Mapfile using the STYLEITEM (similar to how JS files are referenced):<br>
<br>
    LAYER<br>
      STYLEITEM "sld://mysldfile.xml" # uses SHAPEPATH and if not set then relative path to the Mapfile or absolute path<br>
      CLASS # define an empty CLASS here<br>
      END<br>
    END<br>
<br>
It will make it easier to export Mapfiles from other application such as QGIS, and to share styles e.g. between MapServer and GeoServer. More details are in the RFC.<br>
Feedback and comments appreciated. <br>
<br>
I'll start with my +1,<br>
<br>
Seth<br>
<br>
--<br>
web:<a href="https://geographika.net" rel="noreferrer" target="_blank">https://geographika.net</a> & <a href="https://mapserverstudio.net" rel="noreferrer" target="_blank">https://mapserverstudio.net</a><br>
twitter: @geographika<br>
_______________________________________________<br>
MapServer-dev mailing list<br>
<a href="mailto:MapServer-dev@lists.osgeo.org" target="_blank">MapServer-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
</blockquote></div></div>