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

kimaidou kimaidou at gmail.com
Sat Jul 7 05:58:40 PDT 2012


Hi Alexander.

Ok, so I will investigate a little bit and try to solve this issue. Unless
anyone is already working on it ?

Cheers
Michael

2012/7/6 Alexander Bruy <alexander.bruy at gmail.com>

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20120707/8e81b640/attachment.html>


More information about the Qgis-developer mailing list