[Qgis-user] Error using Expression in "Data defined properties"

magerlin MAP at ramboll.dk
Tue May 13 03:15:31 PDT 2014


In styling a layer I try to set the pen width of a line by using an
expression like this:

("A"+"B")/2 where A and B are attributes in the shapefile.

But when I have pressed OK and applied the style the brackets are stripped
from the formula:

"A"+"B"/2

As a quick and dirty solution I use the formula Round("A"+"B")/2 which gives
the right result, but it is dirty!

Anybody to confirm this error?



-----
Regards Morten

Currently using Qgis 2.2 Standalone,
Windows 7, 64bit
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Error-using-Expression-in-Data-defined-properties-tp5139949.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.



More information about the Qgis-user mailing list