Chapter 2. Managing Map Documents and Layers

In this chapter, we will cover the following recipes:

  • Referencing the current map document
  • Referencing map documents on a disk
  • Getting a list of layers in a map document
  • Restricting the list of layers
  • Zooming in to selected features
  • Changing the map extent
  • Adding layers to a map document
  • Inserting layers into a map document
  • Updating layer symbology
  • Updating layer properties
  • Working with time-enabled layers in a data frame

Introduction

The ArcPy mapping module provides 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 to automate map export and print, to create PDF map books, and publish ...

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.