Chapter 6. Executing Geoprocessing Tools from Scripts

In this chapter, we will cover the following recipes:

  • Finding geoprocessing tools
  • Retrieving a toolbox alias
  • Executing geoprocessing tools from a script
  • Using the output of a tool as an input to another tool
  • Setting environment variables

Introduction

ArcGIS Desktop contains over 800 geoprocessing tools, which can be used in your Python scripts. In this chapter, you will learn to use these tools in your scripts. Each tool has unique characteristics. The syntax for executing each will differ depending upon the type of input required to successfully execute the tool. We'll examine how you can determine the input parameters for any tool using the ArcGIS Desktop help system. The execution of a tool results ...

Get Programming ArcGIS 10.1 with Python Cookbook 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.