<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi Martin,<br></div><div><br></div><div>The issue seems to be related to the viewBox property in the SVG file. <br></div><div>If you save the SVG source from view-source:<a href="https://raw.githubusercontent.com/NordjyllandsTrafikselskab/gisimages/ca64d7a849c7cf0290ec41ec263a97b9195d0ff8/01.01.01.Bus.svg">https://raw.githubusercontent.com/NordjyllandsTrafikselskab/gisimages/ca64d7a849c7cf0290ec41ec263a97b9195d0ff8/01.01.01.Bus.svg</a> and remove the following text in a text editor the symbols display correctly:<br></div><div><br></div><div>viewBox="0 0 396.85 396.85"<br></div><div><br></div><div>Maybe it could be an upstream issue, or something has changed upstream that breaks symbol size calculations. <br></div><div><br></div><div>Seth<br></div><div><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, Jul 18, 2023, at 1:59 AM, Steve Lime wrote:<br></div><blockquote type="cite" id="qt" style=""><div dir="auto">There seems to be a regression with svg- I have another sample file that doesn’t render correctly (or at all). Just need to find a little time to resolve it.<br></div><div><div><br></div><div class="qt-gmail_quote"><div dir="ltr" class="qt-gmail_attr">On Tue, Jul 11, 2023 at 12:10 PM Martin Høgh <<a href="mailto:mh@mapcentia.com">mh@mapcentia.com</a>> wrote:<br></div><blockquote class="qt-gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204, 204, 204);"><div>I've a MapFile with a point layer using a class style with a SVG symbol:<br></div><div> <br></div><div> CLASS<br></div><div>      NAME 'point'<br></div><div>      STYLE<br></div><div>          SYMBOL <br></div><div> '<a href="https://raw.githubusercontent.com/NordjyllandsTrafikselskab/gisimages/ca64d7a849c7cf0290ec41ec263a97b9195d0ff8/01.01.01.Bus.svg" rel="noreferrer" target="_blank">https://raw.githubusercontent.com/NordjyllandsTrafikselskab/gisimages/ca64d7a849c7cf0290ec41ec263a97b9195d0ff8/01.01.01.Bus.svg</a>'<br></div><div>      END<br></div><div> END<br></div><div> <br></div><div> In 7.6 this works fine, but in 8.1 the SVG symbol is not showing (no <br></div><div> errors but the image is blank). But if change the SVG file to e.g.:<br></div><div> <br></div><div> <a href="https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/AJ_Digital_Camera.svg" rel="noreferrer" target="_blank">https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/AJ_Digital_Camera.svg</a><br></div><div> <br></div><div> it works. So I guess it's something with the SVG file?<br></div><div> <br></div><div> MapServer version 8.0.1 PROJ version 7.2 GDAL version 3.4 OUTPUT=PNG <br></div><div> OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE <br></div><div> SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV <br></div><div> SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT <br></div><div> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER <br></div><div> SUPPORTS=SOS_SERVER SUPPORTS=OGCAPI_SERVER SUPPORTS=FASTCGI <br></div><div> SUPPORTS=GEOS SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL <br></div><div> INPUT=SHAPEFILE INPUT=FLATGEOBUF<br></div><div> <br></div><div> <br></div><div> _______________________________________________<br></div><div> MapServer-users mailing list<br></div><div> <a href="mailto:MapServer-users@lists.osgeo.org" target="_blank">MapServer-users@lists.osgeo.org</a><br></div><div> <a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br></div></blockquote></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>