Exporting a map to an image file
You can also export
the contents of the map or layout view to an image file using one of the many functions provided by arcpy.mapping
. Each image export function will differ in 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. Available formats include AI, BMP, EMF, EPS, GIF, JPEG, SVG, and TIFF. The parameters provided for each function will vary depending upon 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:
Open
C:\ArcpyBook\Ch5\Crime_Ch5.mxd
in...