WFS GetFeature may be incomplete if layer reports estimated feature count #19041
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
High Priority
Server
Related to QGIS server
Milestone
Author Name: Marco Hugentobler (@mhugent)
Original Redmine Issue: 10638
Affected QGIS version: 2.2.0
Redmine category:qgis_server
Assignee: Marco Hugentobler
Hi René-Luc
layer->featureCount() sometimes returns an estimated feature count. In this case, the WFS server returns an incomplete reply (if called without maxfeatures).
Is it possible to make QgsWFSServer::getFeature a bit more robust against this? E.g. using
@while ( fit.nextFeature( feature ) && ( featureCounter < maxFeat || maxFeatures == -1 ) )@
The text was updated successfully, but these errors were encountered: