Advertisement
Guest User

Untitled

a guest
May 30th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. resultList = []
  2. req = QgsFeatureRequest().setFilterExpression(' "some_field_name" = "some_value" ')
  3. for f in my_layer.getFeatures(req):
  4. name = feat.attribute("some_other_field")
  5. resultList.append(name)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement