Bug report #10638
WFS GetFeature may be incomplete if layer reports estimated feature count
Status: | Closed | ||
---|---|---|---|
Priority: | High | ||
Assignee: | Marco Hugentobler | ||
Category: | QGIS Server | ||
Affected QGIS version: | 2.2.0 | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 19041 |
Description
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 ) )
History
#1 Updated by René-Luc ReLuc over 10 years ago
- % Done changed from 0 to 90
- Target version set to Version 2.4
- Assignee changed from René-Luc ReLuc to Marco Hugentobler
- Status changed from Open to Feedback
- Category set to QGIS Server
#2 Updated by Marco Hugentobler over 10 years ago
- Status changed from Feedback to Closed
Works perfectly here. Thanks!