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

Can't use custom function to select by expression #24268

Closed
qgib opened this issue Mar 16, 2017 · 1 comment
Closed

Can't use custom function to select by expression #24268

qgib opened this issue Mar 16, 2017 · 1 comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Expressions Related to the QGIS expression engine or specific expression functions

Comments

@qgib
Copy link
Contributor

qgib commented Mar 16, 2017

Author Name: Ian Turton (@ianturton)
Original Redmine Issue: 16358
Affected QGIS version: 2.18.3
Redmine category:expressions


I'm following this tutorial (http://www.qgistutorials.com/en/docs/custom_python_functions.html) on custom expressions and all goes well - my function shows up in the custom section and seems to work for the preview giving 21S for the first feature. When I extend the selection expression to GetUtmZone() = '21S' the output preview still says 1. But when I click on the select button no features are selected.

This works on 2.14.x but fails on 2.18.x.

Matthias Kuhn suggested adding usesgeometry=True to the decorator but that seems not to help.

Full discussion can be found at https://gis.stackexchange.com/questions/232006/cant-select-using-a-custom-function-in-qgis-2-18-3

@qgib
Copy link
Contributor Author

qgib commented Mar 16, 2017

Author Name: Anónimo (Anónimo)


Fixed in changeset "90e91448f6e09911b226305702ba40b089ec127d".


  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Expressions Related to the QGIS expression engine or specific expression functions labels May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Expressions Related to the QGIS expression engine or specific expression functions
Projects
None yet
Development

No branches or pull requests

1 participant