crazymatt

ModelBuilder Iteration

Discussion created by crazymatt on Jun 25, 2012
Latest reply on Jun 26, 2012 by smehta-esristaff
I have a series of georeferenced air photos that have black borders around them that I need to clip out. I also have a shapefile that has the outlines for each photo in it. The attributes contain the file name and the file path for each corresponding photo. I'm trying to build a model that will automatically select each feature in the shapefile, and clip the corresponding air photo (based on the filepath in the attribute table).

What I've got so far is a model that uses the Iterate Feature Selection to go through all the features. The problem is that I can only have it select the feature and use it as the clip features. I can't figure out a way to have it return the field with the filepath and use that as the input for the clip process.

Is this possible in ModelBuilder, or am I going to have to export it to Python (which I have almost no experience with) and set some variables? If my understanding of the iteration functions in ModelBuilder is correct, this may very well be impossible to do. I thought of doing a sub model that iterates through the filepath field for each selected feature, but that could be extremely time consuming.

Thanks in advance for any help.

Outcomes