Bug report #11027

SVG Symbols with <Path> fail to display

Added by Stefan Loehr over 10 years ago. Updated over 10 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Symbology
Affected QGIS version:2.4.0 Regression?:No
Operating System:Windows Easy fix?:No
Pull Request or Patch supplied:No Resolution:invalid
Crashes QGIS or corrupts data:No Copied to github as #:19366

Description

SVG Marker Symbols ar not displayed correctly if they contain a "path" element.

For example:

<?xml version="1.0"?>
<svg width="21.467" height="19.467" xmlns="http://www.w3.org/2000/svg">
 <g>
  <title>Ebene 1</title>
  <path d="m11.20594,0.29532a9.45,9.45 0 1 10,18.87636" fill="#00ffff" stroke-width="0" stroke="#000000"/>
  </g>
</svg>

PathTest.svg - SVG Symbol that will not display correctly in QGIS (255 Bytes) Stefan Loehr, 2014-08-08 05:48 AM

History

#1 Updated by Jürgen Fischer over 10 years ago

  • Resolution set to invalid
  • Status changed from Open to Closed

That would be really odd - we ship lots of svgs that have path with QGIS. Inkscape doesn't render the above svg either. I'm not a SVG expert, but I suppose there's something wrong with the SVG.

#2 Updated by Stefan Loehr over 10 years ago

You are right.
The Path-Element was corrupt.
It showed up correctly in IE and Firefox, so I assumed the Error had to be in QGis.
Sorry for the inconvenience.

If someone is interested:
corrupt: <path d="m11.20594,0.29532a9.45,9.45 0 1 10,18.87636" fill="#00ffff" stroke-width="0" stroke="#000000"/>
correct: <path d="m11.20594,0.29532a9.45,9.45 0 1 1 0,18.87636" fill="#00ffff" stroke-width="0" stroke="#000000"/>

Jürgen Fischer wrote:

That would be really odd - we ship lots of svgs that have path with QGIS. Inkscape doesn't render the above svg either. I'm not a SVG expert, but I suppose there's something wrong with the SVG.

Also available in: Atom PDF