Guest User

Untitled

a guest
Oct 22nd, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. ##Input_layer=vector
  2. ##Output_1=output vector
  3. ##Produce_output_2=boolean
  4. ##Output_2=output vector
  5.  
  6. from qgis.core import *
  7.  
  8. def create_my_output(path):
  9. # whatever...
  10.  
  11. create_my_output(Output_1)
  12.  
  13. if Produce_output_2:
  14. create_my_output(Output_2)
  15.  
  16. ##Input_layer=vector
  17. ##Output_1=output vector
  18. ##Output_2=output file
  19. ##Produce_output_2=boolean
  20.  
  21. processing.runalg("qgis:fixeddistancebuffer", Input_layer, 0.01, 10, False, Output_1)
  22.  
  23. if Produce_output_2 == True:
  24. processing.runandload("qgis:fixeddistancebuffer", Input_layer, 1.00, 10, False, Output_2)
  25. else:
  26. pass
Add Comment
Please, Sign In to add comment