Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WFS GetFeature may be incomplete if layer reports estimated feature count #19041

Closed
qgib opened this issue Jun 19, 2014 · 2 comments
Closed

WFS GetFeature may be incomplete if layer reports estimated feature count #19041

qgib opened this issue Jun 19, 2014 · 2 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Server Related to QGIS server
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Jun 19, 2014

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 ) )@

@qgib
Copy link
Contributor Author

qgib commented Jun 20, 2014

Author Name: René-Luc ReLuc (@rldhont)


Hi Marco,

Probably fixed by 9d90923

Can you test it ?


  • done_ratio was changed from 0 to 90
  • fixed_version_id was configured as Version 2.4
  • assigned_to_id was changed from René-Luc ReLuc to Marco Hugentobler
  • status_id was changed from Open to Feedback
  • category_id was configured as QGIS Server

@qgib
Copy link
Contributor Author

qgib commented Jun 20, 2014

Author Name: Marco Hugentobler (@mhugent)


Works perfectly here. Thanks!


  • status_id was changed from Feedback to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Server Related to QGIS server labels May 25, 2019
@qgib qgib added this to the Version 2.4 milestone May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Server Related to QGIS server
Projects
None yet
Development

No branches or pull requests

1 participant