laptop and a wrench

Bug

Provide direct access to a raster in a Raster Field through a search cursor and return a raster object.

Last Published: August 25, 2014 No Product Found
Bug ID Number NIM080691
SubmittedMay 9, 2012
Last ModifiedJune 5, 2024
Applies toNo Product Found
Version found10.1
Version Fixed10.1
StatusFixed

Workaround

Construct the raster item using full path to objectID:ex:#current 10.1 method - construct raster itemrows = arcpy.da.SearchCursor(raster_container,"*","Category=1")rasters = []for row in rows: idname = row[0] print ("processing raster = row:{0} name:{1}").format(idname, rows[2]) # Construct raster item from object ID rasteritem = os.path.join(raster_container,"Raster.OBJECTID ="+str(idname)) outrasname = "test"+str(idname)+"tif.tif" print "Copying {0} to {1}".format(rasteritem,os.path.join(arcpy.env.workspace,outrasname)) arcpy.CopyRaster_management(rasteritem,outrasname)

Steps to Reproduce

Bug ID: NIM080691

Software:

  • No Product Found

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options