Can I loop a set of actions in model builder while a specific features rows are 1 or more.
I have a point layer where I've created a workflow that:
first selects the row with the minimum value in a field containing distances to a line.
[DISTANCE] in (SELECT min( [DISTANCE] ) FROM PointLayer) as my selection query.
I then create a buffer around this one selected point.
I plan to copy and append this point into some sort of result layer.
I then select by location and delete all points from the original
PointLayer that are within the buffer with 'delete rows' or 'delete features' tool.
Now, since the original
PointLayer is modified and some points have been deleted I want to restart the process and loop it until no points/rows are left in the
A new row will be the minimum since the old one was deleted in the previous run.
So the core question again, how can I make such a while loop in model builder and how do I apply the condition while rows > 0, I found there is a get count tool that counts rows.