GIS Logo GSP 118 (318): GIS Programming

Accessing Map Documents

Incomplete

1. Introduction

2. Accessing mxd files

Arcpy.mapping.
- cannot create map docs (mxds and lyrs) but can load and modify
- update or repair data sources (file paths)
- create reports (including PDFs map books)

Arcpy.mapping.
                MapDocument(‘Current’) – uses the current map document
                ListDataFrames(…)
ExportToTIFF()
- have to refresh to see changes in GUI
                ListBrokenDataSources(…)