I am quite new to using iterators, and ModelBuilder in general. I have a .tiff format raster (not a feature class) and I would like to clip it with 18 polygon shapefiles which are spatially present within the raster extent.

I looked at some other model formulas, such as Batch Clip in ModelBuilder of ArcGIS for Desktop?

But, I just can't seem to get it working in ArcGIS 10.2.

Any ideas how I can set up a model which would automate this process and export 18 unique clipped rasters?

I have edited below and added the final correct model.

enter image description here

  • why not merge all the shapefiles into one and then clip? Do you want 18 distinct raster outputs? Commented Nov 1, 2016 at 17:55
  • 3
    Without knowing much about model builder, if you are indeed looking for an output of 18 clipped rasters then I believe you have your rasters and feature classes flipped around and you should, instead, being iterating through the feature classes (polygon shapefiles). There may be more that you need to get your model functioning, but that's a start.
    – rumski20
    Commented Nov 1, 2016 at 17:56
  • 1
    I agree with @rumski20, you need to iterate over your 18 FeatureClasses (shapefiles) clipping your single raster. Make sure you are using inline substitution in the final clipped raster otherwise you just end up overwriting each clip.
    – Hornbydd
    Commented Nov 1, 2016 at 17:59
  • Thanks guys - the reason I dont merge them all into one clip is because I need to automate this process for a specific workflow- and I need 18 unique raster files as an output. I am not sure what inline substitution is, but I am going to mess around a bit more right now based on all your advice- I will let you know how it goes!
    – Alexander
    Commented Nov 1, 2016 at 18:03
  • Hey guys- I got everything working except- as you said Hornbydd, I need an inline substitution. How exactly would I modify this so I don't have the outputs overwrite themselves?
    – Alexander
    Commented Nov 1, 2016 at 18:27

1 Answer 1


Playing off of your current model something like this should work.

enter image description here

As @Hornbydd mentioned using inline substitution in the clip output will allow you to create unique output names so your output isn't overwritten each time. Also make sure you use the Clip (Data Management) tool for the raster clip.


Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.