TransWikia.com

QGIS: using non-square SVG

Geographic Information Systems Asked by Cyrmel on March 20, 2021

I am using QGIS 3.10 and would like to visualise my data using a custom svg whose source code is:

<svg enable-background="new 0 0 175 375" height="375" viewBox="0 0 175 375" width="175" xmlns="http://www.w3.org/2000/svg"> <path d="m 40.445708,15.5 c 0,0 30,85 -15,165 -36.897041,65.59474 -20.0000005,115 -10,135 C 44.514588,373.63777 150,365 170.4457,305.5 190.99887,245.68723 189.06791,170.62949 40.445708,15.5 Z" fill="param(fill)" fill-opacity="param(fill-opacity)" stroke="param(outline)" stroke-opacity="param(outline-opacity)" stroke-width="param(outline-width)"/> </svg>.

In QGIS the .svg is displayed correctly and can be adjusted as I wish:

enter image description here

In the print composer, this .svg is distorted into a square:

enter image description here

How can I prevent this?

One Answer

I have found a simple workaround using Inkscape: making the window square and aligning it.

Answered by Cyrmel on March 20, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP