[Qgis-developer] custom charts?
Hugo Mercier
hugo.mercier at oslandia.com
Thu Jun 23 00:02:03 PDT 2016
On 22/06/2016 19:06, Richard Duivenvoorde wrote:
> On 22-06-16 14:39, Hugo Mercier wrote:
>> Hi Raymond,
>>> - Add a text field to my feature layer containig svg, and somehow make
>>> qgis display that on my map;
>>
>> This should work, no ?
>
> Are you sure? This would mean that the value(!) of an attribute would
> contain the actual svg (code, not filename).
> Any example on how to use that with styling then?
Hmmm exact, I don't think you can include the content (I tried to
include a data url but it does not work).
>
>>> - Add a text field to my feature layer containig a path to a png (or
>>> svg), and somehow make qgis display that on my map.
>>
>> An SVG marker with the file name defined as an expression ?
>
> Same here, while we managed to get for example colors dynamic, we could
> not find a way (yet) to set the marker-svg once filename is retrieved
> from an attribute...
>
> Happy to get an example or pointers :-)
with an SVG-marker the filename can be "data-defined", so you can for
instance use an expression like '/xxx/mymarker_' || id || '.svg'
More information about the Qgis-developer
mailing list