Debugging RuntimeError: Object: Error in executing tool from arcpy.RasterDomain_3d()?

المشرف العام

Administrator
طاقم الإدارة
I´m always getting an Error with my Python-Code. Even though it is almost the same as on the ArcGIS Help Website.

The Error occurs in line 19:

Traceback (most recent call last):

File "C:_geodata\check.py", line 19, in

arcpy.RasterDomain_3d(rasterList,out_file,geometry)

File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\ddd.py", line 998, in RasterDomain

raise e RuntimeError: Object: Error in executing tool

Failed to execute (IterateRasterDomain).

My Code looks like this:

import arcpyfrom arcpy import envarcpy.CheckOutExtension("3D")env.workspace = arcpy.GetParameterAsText(0)rasterList = arcpy.ListRasters()if rasterList: for raster in rasterList: geometry = "POLYGON" out_file = "domain_" + raster[:-4] + ".shp" arcpy.RasterDomain_3d(rasterList,out_file,geometry) print "Finished"else: print "No Data available"

أكثر...
 
أعلى