[Qgis-user] Variable containing other variable in its value

Matthias Kuhn - OPENGIS.ch matthias at opengis.ch
Wed Feb 10 08:06:55 PST 2016


Hi,

In 2.14 there is a new function "eval".
You can use "eval(@svg_path)" for this.

Best Matthias

On February 9, 2016 8:57:09 AM GMT+01:00, Fuenfer-Koenigstein.Benjamin at swm.de wrote:
>Dear List Members,
>
>I'm looking for a way to create project-variables that contain other
>variables. This function would be great to define file-path for
>svg-symbols leading to the correct svg-file on different Computers.
>For example:
>Variable: svg_path
>Value: @project_folder + '/svg_symbols/powerplant.svg'
>
>If I type the above standing value in the data defined override for the
>file path in the symbol-selector-menu it works, if I create a variable
>with the same value and use that in the data defined override, it
>doesn't work. Any idea why? Is it just not possible to use variables
>within the value of a variable?
>
>Thanks for any help!
>
>Best regards
>
>Benjamin Fünfer-Königstein
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Qgis-user mailing list
>Qgis-user at lists.osgeo.org
>List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
>Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20160210/b2ab77cb/attachment.html>


More information about the Qgis-user mailing list