1

I want to use 2 fields of my shapefile to work with in my modelbuilder. One field is the Category, that comprises up to 10 different categories of environmental quality and another is the Season, that comprises the 4 seasons of the year.

I want to use model builder to iterate between my fields to generate different shapefiles with the following output:

SHP1: Category1_Summer
SHP2: Category1_Winter
SHP3: Category1_Fall
SHP4: Category1_Spring
SHP5: Category2_Summer
...

To do that I'm using Select and Copy tool. But how to use the iterator in order to combine the two fields? enter image description here

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Nov 6, 2016 at 19:10

1 Answer 1

2

An iterator will loop over ONE field only. So the solution to your problem is to create a field with all the unique values that you want to loop over. You can prepare your dataset by adding a new field and using the Calculate Field tool to concatenate the values in your 2 other fields, then point the iterator to your new field.

answered Nov 6, 2016 at 22:26

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.