Book Image

Programming ArcGIS with Python Cookbook, Second Edition

By : Donald Eric Pimpler, Eric Pimpler
Book Image

Programming ArcGIS with Python Cookbook, Second Edition

By: Donald Eric Pimpler, Eric Pimpler

Overview of this book

Table of Contents (22 chapters)
Programming ArcGIS with Python Cookbook Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Exporting a map to an image file


You can also export the contents of the map or layout view to an image file by using one of the many functions provided by arcpy.mapping. Each image export function will differ in its name depending upon the type of image file you'd like to create. The parameters passed into the function will also vary slightly.

Getting ready

In addition to providing the ability to export data frames and the page layout to a PDF format, you can also use one of the many export functions provided by arcpy.mapping to export an image file. Some of the available formats include AI, BMP, EMF, EPS, GIF, JPEG, SVG, and TIFF. The parameters provided for each function will vary depending on the type of image. Some examples of these function names include ExportToJPEG(), ExportToGIF(), and ExportToBMP(). In this recipe, you'll learn how to export your maps to images.

How to do it…

Follow these steps to learn how to export your data or layout view to an image file:

  1. Open C:\ArcpyBook\Ch4\Crime_Ch4...