Guest User

Untitled

a guest
Jul 16th, 2019
57
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def processAlgorithm(self, parameters, context, feedback):
  2. (sink, self.dest_id) = self.parameterAsSink(parameters, 'Output', context,
  3. list_of_fields,
  4. QgsWkbTypes.Polygon,
  5. CRS)
  6.  
  7. for result in results:
  8. if feedback.isCanceled():
  9. break
  10.  
  11. # Do smth smart
  12.  
  13. sink.addFeature(result)
  14.  
  15. return {'Output': self.dest_id}
RAW Paste Data