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

QgsOgrFeatureIterator always fetch all feature attributtes but are unnecessary #17709

Closed
qgib opened this issue Nov 13, 2013 · 3 comments
Closed
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers

Comments

@qgib
Copy link
Contributor

qgib commented Nov 13, 2013

Author Name: Alvaro Huarte (@ahuarte47)
Original Redmine Issue: 9062
Affected QGIS version: master
Redmine category:data_provider/ogr
Assignee: Alvaro Huarte


There is a bug in QgsOgrFeatureIterator::ensureRelevantFields(), the feature cursor always fetchs all attributes ignoring the relevant fields configuration of the feature request.

This method doesn´t assign the relevant fields of the ogrLayer managed in the feature cursor, it modifies the relevant field definition of a ogrLayer related in the provider.

The feature cursor works with unmodified configuration of the ogrLayer fetching all attributes from the related dataset.

@qgib
Copy link
Contributor Author

qgib commented Nov 13, 2013

Author Name: Alvaro Huarte (@ahuarte47)


Fixed in pull request:
#994


  • version was changed from 2.0.1 to master
  • pull_request_patch_supplied was changed from 0 to 1
  • resolution was changed from to fixed/implemented
  • done_ratio was changed from 0 to 100

@qgib
Copy link
Contributor Author

qgib commented Nov 13, 2013

Author Name: Jürgen Fischer (@jef-n)


Fixed in changeset "af73f30c27b5ee4860842d79eb59ad3b584e0965".


  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented Nov 13, 2013

Author Name: Alvaro Huarte (@ahuarte47)


Thanks!

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers labels May 24, 2019
@qgib qgib added this to the Future Release - Nice to have milestone May 24, 2019
@qgib qgib closed this as completed May 24, 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! Data Provider Related to specific vector, raster or mesh data providers
Projects
None yet
Development

No branches or pull requests

1 participant