Skip to main content
added an example model to justify the requirement of this possibility
Source Link
Honeybear
  • 2.6k
  • 1
  • 18
  • 28

I'm using QGIS graphical modeler to build an iterative process that is supposed to:

  1. extract features from vector layer 1 (VL1) overlapping with features from vector layer 2 (VL2) (iterative per features in VL2)
  2. then process these extractions individually
  3. then collect/merge the separate outputs for further processing (e.g. merge all outputs to a single layer, then proceed with other algorithms)

How do I realize step 3 in the graphical model? Is that even possible?

Step 1 and 2 work fine as an "iterative process" when using Vector Features as input (instead of Vector Layer), as was suggested here: When running the model I can tap the "iterative" button: iterative button

But subsequently using the "Algorithm output" will always be just for the output of one "feature-iteration" (generating an output for each feature in VL2), but not the collection of all of them (generating one output).

Below is a picture of the model I need it for: Extract by polygon (yellow circle) has to be applied per feature (not per layer). The "Merge vector layers" (pink circle) merges the output of the various algorithm outputs, but not per feature iteration.

example model

I'm using QGIS graphical modeler to build an iterative process that is supposed to:

  1. extract features from vector layer 1 (VL1) overlapping with features from vector layer 2 (VL2) (iterative per features in VL2)
  2. then process these extractions individually
  3. then collect/merge the separate outputs for further processing (e.g. merge all outputs to a single layer, then proceed with other algorithms)

How do I realize step 3 in the graphical model? Is that even possible?

Step 1 and 2 work fine as an "iterative process" when using Vector Features as input (instead of Vector Layer), as was suggested here: When running the model I can tap the "iterative" button: iterative button

But subsequently using the "Algorithm output" will always be just for the output of one "feature-iteration" (generating an output for each feature in VL2), but not the collection of all of them (generating one output).

I'm using QGIS graphical modeler to build an iterative process that is supposed to:

  1. extract features from vector layer 1 (VL1) overlapping with features from vector layer 2 (VL2) (iterative per features in VL2)
  2. then process these extractions individually
  3. then collect/merge the separate outputs for further processing (e.g. merge all outputs to a single layer, then proceed with other algorithms)

How do I realize step 3 in the graphical model? Is that even possible?

Step 1 and 2 work fine as an "iterative process" when using Vector Features as input (instead of Vector Layer), as was suggested here: When running the model I can tap the "iterative" button: iterative button

But subsequently using the "Algorithm output" will always be just for the output of one "feature-iteration" (generating an output for each feature in VL2), but not the collection of all of them (generating one output).

Below is a picture of the model I need it for: Extract by polygon (yellow circle) has to be applied per feature (not per layer). The "Merge vector layers" (pink circle) merges the output of the various algorithm outputs, but not per feature iteration.

example model

Tweeted twitter.com/StackGIS/status/1385201728962895875
naming
Link
Vince
  • 20.3k
  • 16
  • 48
  • 65

Collect results of iterative processes in qgisQGIS graphical modeler

Source Link
Honeybear
  • 2.6k
  • 1
  • 18
  • 28

Collect results of iterative processes in qgis graphical modeler

I'm using QGIS graphical modeler to build an iterative process that is supposed to:

  1. extract features from vector layer 1 (VL1) overlapping with features from vector layer 2 (VL2) (iterative per features in VL2)
  2. then process these extractions individually
  3. then collect/merge the separate outputs for further processing (e.g. merge all outputs to a single layer, then proceed with other algorithms)

How do I realize step 3 in the graphical model? Is that even possible?

Step 1 and 2 work fine as an "iterative process" when using Vector Features as input (instead of Vector Layer), as was suggested here: When running the model I can tap the "iterative" button: iterative button

But subsequently using the "Algorithm output" will always be just for the output of one "feature-iteration" (generating an output for each feature in VL2), but not the collection of all of them (generating one output).