Select to view content in your preferred language

Loop through rows in feature class and clip to raster

617
1
06-03-2011 12:21 PM
BethStein
New Contributor
Hi,

I'm new to python and could use some help.  I need to run a script that loops through the rows in a specified shapefile (HUs_Project) and clips each polygon to the specified raster (vfcm05_lev1a).  I have the clipping script done, but the loop isn't working. Does anyone know how to fix it?

Thanks so much!
Tags (2)
0 Kudos
1 Reply
DarrenWiens2
MVP Alum
I see one place where you call:
desc = gp.describe(fc)

but you have not assigned anything to be called "fc", so Python doesn't know what to describe.
0 Kudos