I want to automate a task on ArcGIS, and I have created a function chain working well. The chain simply evaluates a point, calculates multiple hydrological rasters & values and gives output. I have 300+ points and I have to evaluate and save each one's layers results separately so I need a for loop in the start that counts the file & loops and outputs. Below you can find a Matlab - R-esque imaginary code flow what I need to do.
What I need as a code :
%% assume points.shp with 300 entities
N = count_entities(points.shp) %% Get N = 300
For i = 1:N
Point(i) = extract(points.shp(i))
Output(i) = model_function(Point(i))
End
I am aware of naming problems - I can solve with variable name nodes so no problem with that, my main lack-point of knowledge is establishing primary count and loop steps.
Can someone offer some step by step guidance creating this nodes?