Select to view content in your preferred language

Export Map Series Pages

6775
22
06-23-2017 06:42 AM
mpboyle
Regular Contributor

I'm considering moving some of my map production projects to ArcGIS Pro, but most of them rely on data driven pages and python scripts to automatically iterate over the pages and export out PDFs.

I have looked through the arcpy.mp module and don't see any method, class, or function for accessing map series properties...maybe I'm missing it...?

Without having the ability to script and export a map series, I'm kind of wondering why this is even a part of ArcGIS Pro...?

Is there going to be future development in ArcGIS Pro that will provide the capability of iterating over map series pages and use the already existing exportToPDF, exportToJPEG, exportToPNG, etc...?

Tags (1)
0 Kudos
22 Replies
AnnHowland
New Contributor III

Thanks so much Jeff Barrette, worked perfect. Here is the final script.

aprx = arcpy.mp.ArcGISProject(r"
jc-gis\files\GisData\Atlases\Johnson City Atlas\Johnson City Atlas.aprx")

arcpy.env.overwriteOutput = True

outpath = (r"
jc-gis\files\GisData\PrintShopMaps\PDFs\Atlas_Plain
")

lytlist = aprx.listLayouts()[0]

if not lytlist.mapSeries is None:

mseries = lytlist.mapSeries

if mseries.enabled:

mseries.exportToPDF(outpath + "JCAtlas", multiple_files='PDF_MULTIPLE_FILES_PAGE_NAME', resolution=150, image_quality = "BEST")

Thanks!

howlanda@johnsoncitytn.org

601 E Main St

Johnson City, TN 37601

Check out our online maps and information:

Map Gallery<http://www.johnsoncitytn.org/services/maps_and_data/map_gallery.php>

Ann Howland, GISP

Geospatial Analyst, IT Department

City of Johnson City, Tennessee

423.434.6188 / www.johnsoncitytn.org<http://www.johnsoncitytn.org/>

0 Kudos
BrentKinal1
Occasional Contributor III

ArcGIS 2.3 allows you to export a map series to individual PDFs. While in the map series layout select the Share Tab  > Layout > Save as type = PDF > Export Options > Map Series Tab...then select the pages you want exported to PDF and select desired page format. You can also adjust the file name files will be named <file name>_ <page name>.pdf or <file name>_ <page number>.pdf 

Unfortunately it only works for PDFs at this time hopefully they will get to other formats at some point.

0 Kudos
JeffBarrette
Esri Regular Contributor

Correct.  Only PDF allows a single file output or indvidual files using page number or page name.  Same limitation with ArcMap.  Currently, the only way to produce multiple non-PDF pages is using arcpy.mp.  See example 2 in https://pro.arcgis.com/en/pro-app/arcpy/mapping/mapseries-class.htm

We do plan on extended the Pro UI to included other multi-page formats as well.  

Jeff