Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
qgib opened this issue Jun 22, 2018 · 2 comments
Labels
Expressions Related to the QGIS expression engine or specific expression functions Feature Request

Comments

@qgib
Copy link
Contributor

qgib commented Jun 22, 2018

Author Name: Garth Fletcher (@fgfletcher)
Original Redmine Issue: 19250

Redmine category:expressions


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

@qgib
Copy link
Contributor Author

qgib commented Jun 27, 2018

Author Name: Jürgen Fischer (@jef-n)


  • subject was 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

@qgib qgib added Feature Request Expressions Related to the QGIS expression engine or specific expression functions labels May 25, 2019
@alexbruy
Copy link
Contributor

alexbruy commented May 1, 2020

Duplicates #24662.

@alexbruy alexbruy closed this as completed May 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Expressions Related to the QGIS expression engine or specific expression functions Feature Request
Projects
None yet
Development

No branches or pull requests

2 participants