<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Export a map series for each value in a field in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/export-a-map-series-for-each-value-in-a-field/m-p/1707470#M103575</link>
    <description>&lt;P&gt;I am trying to create a map series to summarise species information from various taxonomic groups, for various sites, referred to here as 'patches'. The table below shows an example of the layer I am using for the spatial map series index layer. 'Patch_Taxon_Page' is the index field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to export a map series for each value of 'Patch_Name', that is saved somewhere with the value of Patch_Name as a file suffix. As if I were putting a definition query for each value of Patch_Name and exporting manually one at a time. Can anyone help me with some python code to do this from a notebook?&lt;/P&gt;&lt;TABLE width="299"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="107"&gt;&lt;STRONG&gt;Patch_Name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="64"&gt;&lt;STRONG&gt;Taxon_Grouping&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="64"&gt;&lt;STRONG&gt;Page&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="64"&gt;&lt;STRONG&gt;Patch_Taxon_Page&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Netpool Park&lt;/TD&gt;&lt;TD&gt;Bird&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Netpool Park_Bird_1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Netpool Park&lt;/TD&gt;&lt;TD&gt;Vascular Plant&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Netpool Park_Vascular Plant_2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Netpool Park&lt;/TD&gt;&lt;TD&gt;Vascular Plant&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Netpool Park_Vascular Plant_3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mynydd Mawr Woodland Park&lt;/TD&gt;&lt;TD&gt;Arachnid&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Mynydd Mawr Woodland Park_Arachnid_1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mynydd Mawr Woodland Park&lt;/TD&gt;&lt;TD&gt;Bird&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Mynydd Mawr Woodland Park_Bird_1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mynydd Mawr Woodland Park&lt;/TD&gt;&lt;TD&gt;Bird&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Mynydd Mawr Woodland Park_Bird_2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jun 2026 17:06:04 GMT</pubDate>
    <dc:creator>YusefSamari</dc:creator>
    <dc:date>2026-06-10T17:06:04Z</dc:date>
    <item>
      <title>Export a map series for each value in a field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/export-a-map-series-for-each-value-in-a-field/m-p/1707470#M103575</link>
      <description>&lt;P&gt;I am trying to create a map series to summarise species information from various taxonomic groups, for various sites, referred to here as 'patches'. The table below shows an example of the layer I am using for the spatial map series index layer. 'Patch_Taxon_Page' is the index field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to export a map series for each value of 'Patch_Name', that is saved somewhere with the value of Patch_Name as a file suffix. As if I were putting a definition query for each value of Patch_Name and exporting manually one at a time. Can anyone help me with some python code to do this from a notebook?&lt;/P&gt;&lt;TABLE width="299"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="107"&gt;&lt;STRONG&gt;Patch_Name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="64"&gt;&lt;STRONG&gt;Taxon_Grouping&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="64"&gt;&lt;STRONG&gt;Page&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="64"&gt;&lt;STRONG&gt;Patch_Taxon_Page&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Netpool Park&lt;/TD&gt;&lt;TD&gt;Bird&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Netpool Park_Bird_1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Netpool Park&lt;/TD&gt;&lt;TD&gt;Vascular Plant&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Netpool Park_Vascular Plant_2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Netpool Park&lt;/TD&gt;&lt;TD&gt;Vascular Plant&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Netpool Park_Vascular Plant_3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mynydd Mawr Woodland Park&lt;/TD&gt;&lt;TD&gt;Arachnid&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Mynydd Mawr Woodland Park_Arachnid_1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mynydd Mawr Woodland Park&lt;/TD&gt;&lt;TD&gt;Bird&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Mynydd Mawr Woodland Park_Bird_1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mynydd Mawr Woodland Park&lt;/TD&gt;&lt;TD&gt;Bird&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Mynydd Mawr Woodland Park_Bird_2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2026 17:06:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/export-a-map-series-for-each-value-in-a-field/m-p/1707470#M103575</guid>
      <dc:creator>YusefSamari</dc:creator>
      <dc:date>2026-06-10T17:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Export a map series for each value in a field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/export-a-map-series-for-each-value-in-a-field/m-p/1708155#M103630</link>
      <description>&lt;P&gt;In your example, if you were to just export the entire series as PNG, would you end up with 6 different files named [Patch_Taxon_Page].png? You could just use a few lines of python to process those file names and aggregate them into two new PDFs named [Patch_Name].pdf.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import glob, os
from PIL import Image

folder = r"C:\Path\To\Your\PNGs"
pngs = glob.glob(os.path.join(folder, "*.png"))

for p in set(os.path.basename(f).split("_")[0] for f in pngs):
    imgs = [Image.open(f).convert("RGB") for f in pngs if os.path.basename(f).split("_")[0] == p]
    imgs[0].save(os.path.join(folder, f"{p}.pdf"), save_all=True, append_images=imgs[1:])&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 15 Jun 2026 14:58:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/export-a-map-series-for-each-value-in-a-field/m-p/1708155#M103630</guid>
      <dc:creator>BrennanSmith1</dc:creator>
      <dc:date>2026-06-15T14:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Export a map series for each value in a field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/export-a-map-series-for-each-value-in-a-field/m-p/1709475#M103718</link>
      <description>&lt;P&gt;Many thanks! I went down a slightly different route in the end, but this is also a good solution.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2026 10:22:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/export-a-map-series-for-each-value-in-a-field/m-p/1709475#M103718</guid>
      <dc:creator>YusefSamari</dc:creator>
      <dc:date>2026-06-24T10:22:58Z</dc:date>
    </item>
  </channel>
</rss>

