|
import arcpy ... arcpy.env.workspace=r'C:\测试\shp' ... featureClasses=arcpy.ListFeatureClasses() ... inRasterPath=r'C:\测\影像\sd.img' ... outFolderPath=r'C:/测试/目标影像/' ... for fc in featureClasses:arcpy.Clip_management(inRasterPath,'#',outFolderPath+fc[:-4]+'.tif',fc,0,"ClippingGeometry") ... Runtime error Traceback (most recent call last): File "<string>", line 6, in <module> UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 3: ordinal not in range(128) |
|