This algorithm extracts features from the Input Layer that fall within, or partially within, the boundaries of features in the Clip Layer. Input Layer features that fall partially within clip layer feature(s) are split along the boundary of the clip layer feature(s). If any features are selected in the Input and Clip Layers, then only those features are used in the clip operation. If no features are selected then the clip operation is performed using all features. The clip function is also known as the cookie-cutter.
processing.runalg('qgis:clip', input, overlay, output)
This algorithm extracts features from the Input layer that don’t fall within the boundaries of the Difference layer. Input Layer Features that are partially within Difference layer feature(s) are split along the boundary of the clip layer feature(s). If any features are selected in the Input and Difference Layers, then only those features are used in the operation. If no features are selected, then the operation is performed using all features.
processing.runalg('qgis:difference', input, overlay, output)
This algorithm combines features from the Input layer and the Intersect Layer, resulting in features that cover both layers’ features. Input Feature(s) that only partially lie within the other layer’s feature(s) are split along the boundary of the other layer’s feature(s). If any features are selected in the Input and Intersect Layers, then only those features are used in the operation. If no features are selected then the operation is performed using all features.
processing.runalg('qgis:intersection', input, input2, output)
<put algorithm description here>
processing.runalg('qgis:lineintersections', input_a, input_b, field_a, field_b, output)
This algorithm creates a layer that includes all feature(s) that are in only one of the two input layers. Feature(s) that only partially lie within the other layer’s feature(s) are split along the boundary of the other layer’s feature(s). If any features are selected in the Input and Difference Layers, then only those features are used in the operation. If no features are selected then the operation is performed using all features.
processing.runalg('qgis:symetricaldifference', input, overlay, output)
This algorithm combines the feature(s) of both layers. Features that lie partially within the other layer’s features will be split. Areas that lie within both layers will be added as new features. If any features are selected in either of the layers, then only those features are used in the operation. If no features are selected then the operation is performed using all features.
processing.runalg('qgis:union', input, input2, output)