[Qgis-developer] Use relative path for SVG icon in new symbology

kimaidou kimaidou at gmail.com
Fri Jul 6 07:49:23 PDT 2012


Hi all,

I have just tested the new feature in Qgis symbology wich lets the user
choose a SVG file directly in the "Symbol property" dialog. It works well,
but the absolute path is stored in the project file, even if "relative" is
set in the project options.

I tried to manually modify the project qgs file and replaced the absolute
path of the SVG by a relative, and then reopen the project in Qgis, and it
worked well (my svg is correctly used for rendering). So basically we just
need to modify Qgis to replace absolute path for SVG into relative ones. Is
anyone working on it ? If no, I could try to locate the right file to
modify and propose a patch.

It would be nice to ship all the SVG with the project and spatial data when
using Qgis Server.

Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20120706/d33e6752/attachment.html>


More information about the Qgis-developer mailing list