Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- resultList = []
- req = QgsFeatureRequest().setFilterExpression(' "some_field_name" = "some_value" ')
- for f in my_layer.getFeatures(req):
- name = feat.attribute("some_other_field")
- resultList.append(name)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement