Hi,
My aim is to construct a simple model consisting of main model (Model), sub-model with while loop (SubModelWhile) and sub-model with for loop (SubModelFor). The task of the Model is to filter surface.tif for n times (starting from 1) and write value collected from resulting .shp down and evaluate the value in if clause with the value from previous round (so model runs minimum two rounds). Model continues adding rounds for the SubModelFor until the condition in while loop is satisfied, when the condition is satisfied SubModelWhile returns the resulting .shp from the previous filtering round (n-1).
There are several general problems that I have looked answer for,
1) For me it is difficult to understand the logic how you feed and return values to/from submodels.
2) SubModelFor is not able to just simply overwrite the previous iteration of filtered.tif. I have Geoprocessing Options -> Overwrite ticked.
3) Visual problems with model builder diagrams. Often I have to navigate to Diagram Properties --> Symbology, change style from 1 to 2 or vice versa, to correct the visual looks of the model. Is there any permanent solution?
4) What would be the tool to write down the amount of rows in shapefile and compare it to previous iteration in while clause?
The picture attached has just the conceptual model from what I would want to create.