How do I get features by their attributes (similar to Iqueryfilter in ArcObjects) in QGIS using Python?
Instead of getting all features and filter it manually, is there any option to use whereclause to filter it out?
For Example: I have a field name called 'Counties'. It has more than fifty thousand of features i.e. not possible to fetch all features and filter it because of time consuming. So i can query it by using iqueryfilter.whereclause = 'Counties = Norwich' in arcobjects.
I need a similar thing in PyQGIS.