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

Alexander Bruy alexander.bruy at gmail.com
Fri Jul 6 08:11:04 PDT 2012


Hi,

AFAIK, this is known issue, see http://hub.qgis.org/issues/2781

2012/7/6 kimaidou <kimaidou at gmail.com>:
> 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

-- 
Alexander Bruy


More information about the Qgis-developer mailing list