AnsweredAssumed Answered

testing for raster

Question asked by geonetadmin on Oct 29, 2012
Latest reply on Nov 6, 2012 by geonetadmin
Original User: dhealey

In 10.1, I'm using  FC_List = arcpy.ListFeatureClasses() to capture a list of fc's names,
    but some of those are also raster.
Now, I'm not seeing that in the doc http://resources.arcgis.com/en/help/main/10.1/index.html#//018v00000018000000.
    However, to humor me.

Using Arcpy, what test can I use to distinguish fc from raster?

As in perhaps...

for name in FC_List:
   if name.ObjectType_for_example == "raster":
      process_raster(name)
   else:
      process_fc(name)

Outcomes