Geographic Information Systems Asked by Alp on March 5, 2021
I have been trying to filter a big dataset based on multiple values. The idea is to extend the formula as put in the image below. But even the first part doesn’t work.
When I do: "kadastraleGemeenteWaarde" IN 'Ridderkerk'
I get all results. If I do "kadastraleGemeenteWaarde" = 'Ridderkerk'
I get no results.
A tip in the right direction would be appreciated a lot.
The following should work:
("kadastraleGemeenteWaarde" LIKE 'Ridderkerk') AND ("sectie" LIKE 'E')
The brackets are important for correct chaining of expressions. The change to LIKE
is probably unnecessary, but to me it feels "cleaner", since I use IN
only if I have a real list.
Answered by Erik on March 5, 2021
In QGIS, if you browse the data (Open Attribute Table) then you can hit the 'Filter' button at the top. This gives you a GUI filter window. The best thing about this, is that it will give you the Expression at the bottom of that GUI. In your instance, I used the GUI to enter Ridderkerk as a 'Contains' filter. then ran the filter. It returned the resultant features. Better yet, it showed me the expression to use.
("kadastraleGemeenteWaarde" ILIKE '%Ridderkerk%')
This GUI should help you build your expression correctly.
Answered by nr_aus on March 5, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP