Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. k=0
  2. v=0
  3. layer = iface.activeLayer()
  4. for item in keys:
  5. listk = strkey[k]
  6. listv = strvalue[v]
  7. layer.selectByExpression('"LINE_ID" IN ('+listk+') AND "Declividad" IN ('+listv+')', QgsVectorLayer.SetSelection)
  8. v=v+1
  9. k=k+1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement