AnsweredAssumed Answered

ArcGIS 10.2 - arcpy.ListRasters() returns nothing for a Raster Catalog in FGDB!

Question asked by Vincenty on Dec 15, 2015
Latest reply on Dec 23, 2015 by bixb0012

Hi,

 

In a script, the rasters = arcpy.ListRasters() returns nothing for a Raster Catalog held in a File GDB? The workspace references to the Raster Catalog itself and I would expect to list the rasters in that Raster Catalog... But the list is empty!

 

rasters = arcpy.ListRasters("*", "All")
arcpy.AddMessage("Rasters: " + str(rasters))
i = 0
for raster in rasters:
    i = i + 1
arcpy.AddMessage("Count Rasters: " + str(i) + "\n")

returns

Rasters: []

Count Rasters: 0

 

Is there anything wrong I am doing?

 

Thank you

Outcomes