[QGIS-Developer] expression variable for rendering with QGIS server

Nyall Dawson nyall.dawson at gmail.com
Wed May 23 15:59:25 PDT 2018

On 24 May 2018 at 00:16, Otto Dassau <dassau at gbd-consult.de> wrote:
> Dear developers,
> I use expression variables within the rule based renderer. For example:
> CASE WHEN @project_title LIKE '%adult' THEN "fclass" = 'school' ELSE
> "fclass" = 'kindergarten' END
> This works in QGIS desktop but not with QGIS Server Version 2 and 3. Does
> QGIS server not support this feature at all? Or do I miss something?

QGIS server in 2.x used an older, deprecated rendering facility, which
had no knowledge of variables and how to set them. Changing this was a
substantial body of work which was completed for 3.0.

(There's basically no fix possible for this in 2.x - the solution is
to use 3.0 here.)


More information about the QGIS-Developer mailing list