Feature request #19250

Layer Properties > Source > Provider feature filter: accept Query which includes global or project variables

Added by Garth Fletcher over 6 years ago. Updated over 6 years ago.

Status:Open
Priority:Normal
Assignee:-
Category:Expressions
Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:27078

Description

At present the Query Builder only supports layer fields in its queries.
It would be useful to also be able to reference global or project variables, for example:
"disp_lev" >= @Wshed_disp_lev
where "disp_lev" is a layer variable but @Wshed_disp_lev is a global or project variable.
In the above example, the layers consisted of watersheds of which only the top (largest) watersheds should be drawn.
Wanted to draw a series of maps starting with L1 (smallest/highest watersheds), L2 (next level in which some L1 watersheds were absorbed into L2 watersheds), L3...
@Wshed_disp_lev was used to set which map was being draw, and "disp_lev" to determine whether a watershed in lower levels needed to be drawn...

History

#1 Updated by Jürgen Fischer over 6 years ago

  • Subject changed from QGIS 3.0.3 Layer Properties > Source > Provider feature filter: accept Query which includes global or project variables to Layer Properties > Source > Provider feature filter: accept Query which includes global or project variables

Also available in: Atom PDF