Chapter 5. 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

Introduction

ArcGIS for Desktop contains over 800 geoprocessing tools, which can be used in your Python scripts. Using geoprocessing tools from your Pythons scripts enables you to execute complex workflows and perform batch geoprocessing tasks. In this chapter, you will learn how to use these tools in your scripts. Each tool has unique characteristics. The syntax to execute each will differ depending upon the type of input required to successfully execute the tool. We'll examine how you can determine ...

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.