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

[expressions] with_variable shouldn't allow to set a variable already reserved (e.g. @geometry, @id, @feature, ...) #58704

Open
agiudiceandrea opened this issue Sep 12, 2024 · 0 comments
Labels
Expressions Related to the QGIS expression engine or specific expression functions Feature Request

Comments

@agiudiceandrea
Copy link
Contributor

Feature description

The with_variable function currently allows to set e.g. a 'geometry' variable without any warning that such variable will not actually store the desired value:
with_variable('geometry', geom_from_wkt('POINT(3 1)'), geom_to_wkt(@geometry))
returns the WKT of the geometry or the current feature instead of POINT(3 1).

Additional context

No response

@agiudiceandrea agiudiceandrea added Feature Request Expressions Related to the QGIS expression engine or specific expression functions labels Sep 12, 2024
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

1 participant