Tim What you are describing is the behaviour of the iterative execution of algorithms (for a layer with n features, it runs the algorihtm n times, each of them using as input a layer with only one of those features). That can be executed without the need to code anything, from the algorithm dialog.
If it's not exactly what you are looking for and you want to code something similar, maybe you can at least check the corresponding code to get some ideas https://github.com/qgis/QGIS/blob/master/python/plugins/processing/gui/AlgorithmExecutor.py#L58 Let me know if you have more questions Cheers 2015-07-23 20:15 GMT+02:00 Tim Sutton <[email protected]>: > Hi all > > Is it possible to write loops in processing. I’d like to do stuff like > iterate over each poly in a polygon layer, clip features from a few layers > and write them to a subfolder whose name is based on the name of the > polygon layer. Think of it like atlas but for data not for print > compositions. Has anyone done something similar? > > Regards > > Tim > > > > > Tim Sutton > QGIS Project Steering Committee Member > [email protected] > > > > > > _______________________________________________ > Qgis-developer mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/qgis-developer >
_______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
