Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. import processing
  2. moment_all = iface.activeLayer()
  3. moment_all.startEditing()
  4. processing.runalg("qgis:addfieldtoattributestable","filepath.shp","blast",2,2,0,"/Users/pgcseismolab/Desktop/qgis/moment_all.shp")
  5. processing.runalg("qgis:selectbylocation","filepath.shp","filepath2.shp",['within'],0,0)
  6. processing.runalg("qgis:fieldcalculator","filepath.shp","blast",0,10,3,False,"'b'","filepath.shp")
  7. moment_all.commitChanges()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement