[GIS] How to select features based on multiple values in graphical modeler

qgisselectsextante

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?

Best Answer

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.

Select by expression

This can include multiple attribute values, for example:

"column_A" = 'X' OR "column_B" = 'Y'
Related Question