I want to filter features from a polygon shapefile in QGIS using a list of numbers that occur only in one column of the attribute table.

For example: My attribute table has 20 columns. One of them is named "telephones". I have a txt file that only contains one telephone number per row. How can I filter all features that assign to each number?


You are looking to join shapefile to txt file. You should add your .shp and .txt files to QGIS and join them based on the filter field. You can follow tutorial at https://tilemill-project.github.io/tilemill/docs/guides/joining-data/.

|improve this answer|||||
  • "feature" in ('45','87','988',4687','444') This is what I was looking for – Ntelo Jun 15 '18 at 9:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.