This is my first time building a model from scratch, so let me know if I've omitted anything in describing this question.

I have a geodatabase that contains shapefiles (polygons) of watersheds. I need to intersect each polygon with a shapefile (polygons) of land use. I can get the following to work, but only for one file at a time.

enter image description here

But I'm not sure I've created a model that will properly loop through all the watersheds in the geodatabase (see below). I used a for loop, but I'm not sure I used it properly. I also need them to be exported as their original name, but in a different geodatabase. Is this how an iterative intersect model would work?

enter image description here

  • Simple intersect will do unless your watersheds stored in different feature classes – FelixIP May 8 at 6:17

Assuming you're intersecting the same land use polygon feature class to all watersheds I would try something a bit like this:

enter image description here

The in-line substitution in the output should get the path to your result gdb and create a feature class that inherit the name of the feature class in your input gdb.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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