Chapter 2. Writing Basic Geoprocessing Scripts with ArcPy

In this chapter, we will cover the following recipes:

  • Using the ArcGIS Python window
  • Accessing ArcPy with Python
  • Executing tools from a script
  • Using ArcGIS Desktop help
  • Using variables to store data
  • Accessing ArcPy modules with Python

Introduction

Geoprocessing tasks tend to be time consuming and repetitive, and often need to be run on a periodic basis. Frequently, many data layers and functions are involved. The ArcPy Python site package for ArcGIS provides a set of tools and execution environments that can be used to transform your data into meaningful results. Using scripts you can automate your geoprocessing tasks and schedule them to run when it is most convenient for your organization.

ArcGIS ...

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.