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

Otto Dassau dassau at gbd-consult.de
Wed May 23 23:51:30 PDT 2018


Am Thu, 24 May 2018 08:59:25 +1000
schrieb Nyall Dawson <nyall.dawson at gmail.com>:

> 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.)
> 
> Nyall

Thanks Nyall for the explanation, we will go for version 3 then.

Regards,
Otto


More information about the QGIS-Developer mailing list