AnsweredAssumed Answered

raster clipping with overlapping polygons

Question asked by rudi215 on Aug 16, 2012
Latest reply on Aug 22, 2012 by rudi215
Hello,
I am quite new to using python, but...
I have a set of overlapping polygons that I would like to use to clip several raster layers

I have the following code thus far

import arcpy # set environments arcpy.env.workspace = "Path" arcpy.env.overwriteOutput = True #set parameters featureTable="Individual_catchments" baseFeature="elevation" #set cursor rows = arcpy.SearchCursor(featureClass) # loop  for row in rows:      #here I select the geometry       feat = row.Shape      arcpy.Clip_management(baseFeature, "#", "catch"+str(row.Local)+".tif",feat, "0", "ClippingGeometry")


however, when I try to run I get an error stating "ERROR 999999: Error executing function. Raster dataset already exists Failed to execute (Clip). "

thank you for your time and help

cheers

Mat

Outcomes