Saturday, 21 September 2019

Getting feature attribute description with pyqgis?


I have a vector layer which attributes have value maps and I need to get the description of value. I am able to get the values with feature.attributes(), but I haven't found a way to get the description.enter image description here


layer = canvas.currentLayer()
attributes = feature.attributes()
print attributes[5] # prints 0, but I need Unknown


No comments:

Post a Comment