Bug report #16414

Updated by Giovanni Manghi over 7 years ago

I am trying to use SLD’s that contain SVG’s that exists on the web (example: https://upload.wikimedia.org/wikipedia/commons/f/fd/Ghostscript_Tiger.svg).



This works correctly in QGIS if I define the SVG-symbol with the given link, as in copy the link into the field for file-path to the symbol.



It also looks like the SLD is written correctly if you try to do an export.



However if you try to load the SVG you exported, QGIS will freeze and you will have to force the program to close.



I guess that there is some problem with saving temp SVG-files.



Example SLD-file:



<?xml version="1.0" encoding="UTF-8"?>

<StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd" xmlns:se="http://www.opengis.net/se">

<NamedLayer>

<se:Name>Point</se:Name>

<UserStyle>

<se:Name>Point</se:Name>

<se:FeatureTypeStyle>

<se:Rule>

<se:Name>Single symbol</se:Name>

<se:PointSymbolizer>

<se:Graphic>

<se:ExternalGraphic>

<se:OnlineResource xlink:type="simple" xlink:href="https://upload.wikimedia.org/wikipedia/commons/f/fd/Ghostscript_Tiger.svg"/>

<se:Format>image/svg+xml</se:Format>

</se:ExternalGraphic>

<se:Size>12</se:Size>

</se:Graphic>

</se:PointSymbolizer>

</se:Rule>

</se:FeatureTypeStyle>

</UserStyle>

</NamedLayer>

</StyledLayerDescriptor>

Back