SHARE
TWEET

Untitled

a guest Jul 16th, 2019 54 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top