i look for solution to get the unique values of an attribute of a vector layer. what is the best way in python qgis to get the unique values of one distinct attribute? I work with qgis 1.8.0.
Python's sets are handy for finding unique values. For example:
Try something like this (pyqgis 1.8):