Select to view content in your preferred language

Identifying feature 'type' - feature class, raster or table?

835
2
02-12-2014 03:43 PM
AnthonyCheesman1
Frequent Contributor
Having a major brain fade here!

How can I examine an object within a gdb, and determine if it is a FC, raster, or table?
Tags (2)
0 Kudos
2 Replies
AnthonyCheesman1
Frequent Contributor
Brain fade averted, I think.

Will use ListFeatureClasses, ListRasters ad ListTables, compare the item in question to these lists, and make the determination accordingly.

Hopefully this works.
0 Kudos
JakeSkinner
Esri Esteemed Contributor
You can use the datatype property of the Describe function to do this.  Ex:

desc = arcpy.Describe(fc)
print desc.datatype
0 Kudos