<div dir="ltr"><div>Hi</div><div><br></div><div>I've to show a problem using mapscript... I'm using mapscript creating map file starting form a SLD (calling applySLD) generated by QGIS (rt_mapserver_exporter plugin)</div>

<div><br></div><div>a SLD file can be found here: <a href="https://gist.github.com/luipir/8304386">https://gist.github.com/luipir/8304386</a></div><div><br></div><div>it has been generated creating a simple point shape file and applying external SVG files in QGIS... I can provide all test files and qgis project and qml style</div>

<div><br></div><div>None of external SVGs are exported in the map file... reading the mapscript code i can see:</div><div><br></div><div>mapogcsld.c:2075 msSLDParseExternalGraphic(...)</div><div>manage external link only if mapserver is compiled with CURL (cmake default is NO)</div>

<div>if CURL is available then it manage only this formats:</div><div><br></div><div><div>      (strcasecmp(pszFormat, "GIF") == 0 ||</div><div>       strcasecmp(pszFormat, "image/gif") == 0 ||</div><div>

       strcasecmp(pszFormat, "PNG") == 0 ||</div><div>       strcasecmp(pszFormat, "image/png") == 0)) {</div></div><div><br></div><div>then call msAddImageSymbol</div><div>and mapsymbol.c:364 - msAddImageSymbol</div>

<div><br></div><div>manage only http</div><div><br></div><div>If I try to "force" it strcasecmp(pszFormat, "image/svg+xml") == 0 in msSLDParseExternalGraphic</div><div>and strncasecmp(filename, "file", 4) == 0 in msAddImageSymbol</div>

<div><br></div><div>the call msHTTPGetFile return this error message:</div><div><br></div><div>MapServerError?: msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with curl error code 1 (Protocol file not supported or disabled in libcurl) for file:///Antica-dir-scorr-fluv-2020.svg<br>

</div><div><br></div><div>but CURL manage file:/// protocol... I can download it (adding complete path)</div><div><br></div><div>so the QUESTION is</div><div><br></div><div>1) there is a reason that svg and file: protocol are not implemented?</div>

<div>2) if it's a "bug" what whould be a good solution?</div><div> </div><div>thank you for your help</div><br clear="all"><div><div dir="ltr">Luigi Pirelli (<a href="mailto:luigi.pirelli@faunalia.it" target="_blank">luigi.pirelli@faunalia.it</a> - <a href="mailto:luipir@gmail.com" target="_blank">luipir@gmail.com</a>)</div>

</div>
<div dir="ltr"><br></div><div>p.s. i'm using 6.4 master code </div></div>