Example: Determine Shape Type
fc = r"c:\temp\myshape.shp
desc = arcpy.Describe(fc)
print desc.shapeType
This block of code will output a string telling the end user the type of geometry used for this shapefile.
In general, the Describe function returns a Describe object. The output of Describe contains various properties, such as data type, fields, indexes, etc... The objects properties are dynamic which means that the data type will determine what properties are returned.
All Describe object will have the same base properties:
Common Describe Properties |
Enjoy