[QGIS-Developer] OGR: sqlite with subset query, QgsOgrFeatureIterator::fetchFeature with SpatialFilterRect always returns feature with id 0

Even Rouault even.rouault at spatialys.com
Sat Sep 2 14:34:46 PDT 2017


> 
> Ok makes sense. Though as far as QGIS goes, is there a case where a
> subset query can result in duplicates?

Could happen. The code currently handles the possibility where subsetString() is 
called with a completely custom SELECT statement, so potentially doing crazy things.
> 
> Something like this [1] seems to fix the issue, don't know if it's the
> best way forward though?

I've left a few comments in the commit

Even


-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20170902/a6dd338b/attachment.html>


More information about the QGIS-Developer mailing list