Bug report #1305

QgsVectorDataProvider.uniqueValues always returns empty list

Added by cfarmer - over 15 years ago. Updated over 14 years ago.

Assignee:nobody -
Category:Python plugins
Affected QGIS version: Regression?:No
Operating System:Linux Easy fix?:No
Pull Request or Patch supplied: Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:11365


No matter what data is used, uniqueValues always returns an empty list. This has been tested on a number of datasets (shapefiles).


#1 Updated by Jürgen Fischer over 15 years ago

seems to only apply to the python binding

#2 Updated by Martin Dobias over 15 years ago

  • Resolution set to fixed
  • Status changed from Open to Closed

Fixed in 48724e05 (SVN r9684). Now this works fine:

lst = provider.uniqueValues(3)

#3 Updated by Anonymous over 14 years ago

Milestone Version 1.0.0 deleted

Also available in: Atom PDF