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.
layer = canvas.currentLayer()
attributes = feature.attributes()
print attributes[5] # prints 0, but I need Unknown
No comments:
Post a Comment