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

Martin Dobias wonder.sk at gmail.com
Sun Dec 21 05:41:06 PST 2014


Hi Luigi

On Sat, Dec 20, 2014 at 5:57 PM, Luigi Pirelli <luipir at gmail.com> wrote:
>
> Hi,
>
> I realised that some filter in QgsFeatureRequest are mutually exclusive
> [...]
> it's a bug or a feature or not implemented or my fault in using filtering?
>

It is not a bug - and neither a feature. It is simply a limitation from the
design. Originally feature request supported: 1. no filter, 2. filter by
rect, 3. filter by fid. Those options were used in mutually exclusive way
so there was no reason to make the code more complex and allow their
combinations. Now with more filtering options this would be useful - maybe
in the future someone will find time and implement support for multiple
filters at once....

Cheers
Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20141221/e324fc53/attachment.html>


More information about the Qgis-developer mailing list