O'Reilly logo

Programming ArcGIS 10.1 with Python Cookbook by Eric Pimpler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Returning workspace information with the Describe() function

There are several different types of geodatabases that can be used with ArcGIS, including personal, file, and enterprise. As we saw in Chapter 8, Querying and Selecting Data, the construction of queries will vary depending upon the type of geodatabase a dataset resides within. Your scripts may or may not know the geodatabase type ahead of time. To make your scripts more robust in the case of queries, you could use the Describe() function against a workspace to capture this information and construct your query accordingly.

Getting ready

The Workspace property group provides information about a workspace (such as a folder, personal or file geodatabase, or enterprise geodatabase). These ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required