Select to view content in your preferred language

Nesting 2 iterator models in Model Builder

319
3
12-19-2022 02:59 AM
Labels (1)
by Anonymous User
Not applicable

Hello,

I am trying to iterate some feature classes (polygons) and Cropscape national rasters for several years and clip them and name them as PName_RName (polygon name _ raster name)  then build a raster attribute table for each iteration. I don't know what I am doing wrong. Would appreciate any help.

Polygons and GDB

h_deniz_ozturk_0-1671447273916.png

Master Model

h_deniz_ozturk_1-1671447306801.png

Polygon Iteration

h_deniz_ozturk_2-1671447339357.png

Raster Iteration

h_deniz_ozturk_3-1671447393449.png

 

 

0 Kudos
3 Replies
by Anonymous User
Not applicable

Can you explain further why you need 2 iterators? Say you have 10 polygons - is your expected output 1 rater for each year of data (i.e. if there are 10 polygons and 10 years of data you would expect an output of 100 rasters)?

0 Kudos
by Anonymous User
Not applicable

Yes, If there are 10 polygons and 10 national rasters for each year, you would have 100 individual clipped rasters.

0 Kudos
by Anonymous User
Not applicable

looks to me like you only need 1 iterator to run through each of the features in your polygon feature class.

0 Kudos