[Qgis-developer] QgsFeatureRerquest filters are mutually exclusive? why?

Luigi Pirelli luipir at gmail.com
Sat Dec 20 02:57:32 PST 2014


Hi,

I realised that some filter in QgsFeatureRequest are mutually exclusive

the following gist on alaska.shp (in alaska crs)
https://gist.github.com/luipir/fcbc318304944962dfec#file-gistfile1-py

return 283 Elements

but uncomment spatial filter request.setFilterRect( rect ) return only
10 records

seems that the mutual exclusivity is coded here
http://qgis.org/api/qgsvectorlayerfeatureiterator_8cpp_source.html#l00126

and mFilter in QgsFeatureRequest is NOT managed in OR during setting
in http://qgis.org/api/qgsfeaturerequest_8cpp_source.html

it's a bug or a feature or not implemented or my fault in using filtering?

regards, Luigi Pirelli


More information about the Qgis-developer mailing list