On Thu, 13 Dec 2018 at 23:35, M S. <[email protected]> wrote:

> ddpColor= QgsDataDefined( True, True, "CASE WHEN DATA % 3 = 0 then  
> color_rgb( 255,0,0) WHEN DATA % 3 = 1 then  color_rgb( 0,255,0) WHEN DATA % 3 
> = 2 then  color_rgb( 0,0,255) END" )

If you change this to expression to:

CASE WHEN "DATA" % 3 = 0 then  color_rgb( 255,0,0) WHEN "DATA" % 3 = 1
then  color_rgb( 0,255,0) WHEN "DATA" % 3 = 2 then  color_rgb(
0,0,255) END

does it help? (i.e. enclose the DATA column name in " )

Nyall
_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to