Select to view content in your preferred language

how do I get a list of rasters in a geodatabase?

3037
2
Jump to solution
02-13-2018 01:31 PM
DanielSchatt
Regular Contributor

For ListRasters, there's no geodatabase raster type option in the parameter for setting the raster type, so how do I do this?  Thanks!

Dan

1 Solution

Accepted Solutions
PaulSmith8
Emerging Contributor

No need to set raster type to list raster in GDB.

arcpy.env.workspace = r"C:\rasters.gdb"
rasterList = arcpy.ListRasters()
print rasterList

View solution in original post

2 Replies
PaulSmith8
Emerging Contributor

No need to set raster type to list raster in GDB.

arcpy.env.workspace = r"C:\rasters.gdb"
rasterList = arcpy.ListRasters()
print rasterList
DanielSchatt
Regular Contributor

thanks Paul

0 Kudos