Using the Describe() function to return descriptive information about a feature class
All datasets contain information that is descriptive in nature. For example, a feature class has a name, shape type, spatial reference, and so on. This information can be valuable to your scripts when you are seeking specific information before continuing with further processing in the script. For example, you might want to perform a buffer only on polyline
feature classes instead of points or polygons. Using the Describe()
function, you can obtain basic descriptive information about any dataset. You can think of this information as metadata.
Getting ready
The Describe()
function provides you with the ability to get basic information about datasets. These datasets ...
Get Programming ArcGIS with Python Cookbook - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.