Chapter 3. Managing Map Documents and Layers

In this chapter, we will cover the following recipes:

  • Referencing the current map document
  • Referencing map documents on disk
  • Accessing a data frame
  • Getting a list of layers in a map document
  • Restricting the list of layers
  • Changing the map extent
  • Getting a list of tables
  • Adding layers to a map document
  • Inserting layers into a map document
  • Updating layer symbology
  • Updating layer properties

Introduction

The ArcPy mapping module is new to ArcGIS 10 and brings some really exciting features for mapping automation, including the ability to manage map documents and layer files as well as the data within these files. Support is provided for automating map export and printing, for the creation of PDF map books and publication ...

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.