14

In the QGIS version 2.X, there was an Iterative Button from the algorithm also available for the algorithm used inside the processing modeller.

Actually, I use version 3.2 and 3.4 and can not find it. Will I find the button somewhere else or is the iterative button removed?

Example_1

Example_2

Taras
  • 32,823
  • 4
  • 66
  • 137
AndreasR
  • 171
  • 1
  • 8

1 Answers1

14

You need to use the Vector Features input parameter if you want to iterate over all or selected features:

Example model iterating features

Now when you run the model, you can choose whether to run the model once on all or selected features and return a single output; or iterate over all or selected features and return an output per feature:

Running iterate model

Joseph
  • 75,746
  • 7
  • 171
  • 282
  • 2
    Thanks a lot , sometimes it is like: "can´t see the wood for the trees". – AndreasR Feb 21 '19 at 10:53
  • @AndreasR - Most welcome and don't worry, there's been a lot of changes in QGIS 3 compared to 2 so it does take getting used to finding where everything is again :) – Joseph Feb 21 '19 at 10:57
  • 1
    The problem persists. The 'iterate' button that appears in the 'Example3' dialog you show above does not appear in 3.10.3, or the latest LTR (3.10.12) . It is as AndreasR states. Currently checking whether it appears in 3.16.1. There is also no 'selected features only' option. What version of QGIS does your 'Example3' dialog come from, please? Both ITERATE and SELECTED FEATURES ONLY appear in 3.16 – Bruce Mitchell Nov 24 '20 at 11:44