desc = arcpy.Describe(DEMpoly) shapefieldname = desc.shapeFieldName rowCursor = arcpy.SearchCursor(DEMpoly) for row in rowCursor: feat = row.getValue(shapefieldname) arcpy.Clip_management(OUTraster, feat, row.getValue(Text) + ".img") cursor.next()
Solved! Go to Solution.
for row in rowCursor: feat = row.getValue(shapefieldname) arcpy.Clip_management(OUTraster, "#", row.getValue(field) + ".img", feat, "0", "ClippingGeometry") rowCursor.next()
for row in rowCursor: feat = row.getValue(shapefieldname) arcpy.Clip_management(OUTraster, "#", row.getValue(field) + ".img", feat, "0", "ClippingGeometry") rowCursor.next()
for row in rowCursor: feat = row.getValue(shapefieldname) clipRas = "{0}.img".format(row.getValue(field)) arcpy.Clip_management(OUTraster, "#", clipRas, feat, "0", "ClippingGeometry") rowCursor.next()