I'm trying to create a basic model using QGIS, the QGIS graphical modeler and the sextante toolbar. In part of the model, I need to select features based upon multiple attribute values (for example - A = 'value' OR A = 'another value'). The select by attribute algorithm provided by QGIS only allows you to enter a single value at a time - is there a simple tool/method to enter an expression to select multiple values from a dataset, and which can be incorporated in the graphical modeler?
Just to move this question from the Unanswered section - the Sextante plugin has been renamed to the Processing plugin.
And as of version 2.9.0, you can use the Select by expression tool (separately or within the graphic modeler) which allows you to select features based on the expression provided.
This can include multiple attribute values, for example:
"column_A" = 'X' OR "column_B" = 'Y'
This is exactly the tool I need. I have recently installed QGIS v. 2.18, but I do not see the "select by expression" option in my processing toolbox. How can I find it? Jul 11, 2017 at 14:55
1@bwilkes - It should be made available. Exactly which QGIS 2.18 version are you using? Which algorithms are available to you? Also, make sure the "processing" folder is deleted in your
.qgis2/python/plugins/directory.– JosephJul 11, 2017 at 15:10
1Deleting the folder in my plugins directory totally did the trick! Thank you so much!! I'm also getting an unrelated error message upon startup. I'm thinking my "upgrade" from 2.14 to 2.18 last week did not go smoothly... but that's probably a question for another thread. Jul 12, 2017 at 17:43
1@bwilkes - Most welcome, glad you solved it! You could always do a reinstall and see if the error message goes away :)– JosephJul 13, 2017 at 9:26
1update went smoothly, error message gone! Jul 25, 2017 at 13:37