Select to view content in your preferred language

Model builder - selecting features

2061
3
04-08-2010 08:17 AM
RobertMueller_Jr
Emerging Contributor
Here is something I haven't been able to figure out. Within model builder I want to run an clip analysis on another polygon layer (say watersheds and vector land use). How do I tell the model builder to start with the first watershed feature in the attribute table, and successively move through all features in the table, clipping landuse one by one? I then want to label the output with the same name as the watershed used for the clipping?

Thanks,

Stumped.
0 Kudos
3 Replies
BBicking1
Esri Contributor
If you're working with 9.3.1 you'll use a series and populate the input --defined as a series of values-- to clip with the watershed features using "insert values from table". If you're unfamiliar with series, read the 'Model Iteration' section under 'Automating your work with models' under Geoprocessing.

Barbara Bicking
GeoprocessingTeam
0 Kudos
ShitijMehta
Esri Regular Contributor
You can also choose to write a script tool that reads through each record in the table. There is a Iterate Field Value Script tool posted on http://resources.esri.com/geoprocessing/index.cfm?fa=codeGalleryDetails&scriptID=15710
for 9.3. You can check the doc and the script on how it works and replicate for your case if necessary.
0 Kudos
PaulJordan
Regular Contributor
I can't figure this one out either. 

Like Shitijmehta, I have a dataset with multiple overlapping polygons representing nested watersheds.  I need to clip the landuse data for each polygon in the watershed dataset.  If they weren't overlapping I could just use the split command but that generates an error with poly overlaps.

I've been monkeying around with model builder for the last two hours with no progress.

Who wants to bail me out of this headache I'm developing?

Thanks!

Paul
0 Kudos