<?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>idea Spatial Map Series: index layer by symbology in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/spatial-map-series-index-layer-by-symbology/idi-p/1501903</link>
    <description>&lt;P&gt;I would like to suggest some additional functionality to the Spatial Map Series: create spatial map series by current symbology or by field.&lt;/P&gt;&lt;P&gt;Context from my screenshots, I want to export a series of maps of a landscape layer by SUBAREA.&amp;nbsp; each map should show all landscape features within that subarea. right now my work around is to dissolve the layer by attribute and use that as my spatial extent. While this is not a huge pain, it does create extra steps that I think could be solved by having the option to choose the field to base the extents on. Maybe under layer there could be:&lt;/P&gt;&lt;P&gt;- create index by symbology&lt;/P&gt;&lt;P&gt;- create index by attribute&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ShannonJ_0-1720195484728.png" style="width: 568px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/108912iD9E8A8BEC678102B/image-dimensions/568x298?v=v2" width="568" height="298" role="button" title="ShannonJ_0-1720195484728.png" alt="ShannonJ_0-1720195484728.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I saw the "group by" option I got excited thinking I had solved my own problem, but that simply groups the layouts.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ShannonJ_1-1720195588940.png" style="width: 487px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/108914i8EE0E784E9A0CC2A/image-dimensions/487x304?v=v2" width="487" height="304" role="button" title="ShannonJ_1-1720195588940.png" alt="ShannonJ_1-1720195588940.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is a fairly common workflow for me so saving a few steps can make a big difference!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jul 2024 16:15:04 GMT</pubDate>
    <dc:creator>ShannonJ</dc:creator>
    <dc:date>2024-07-05T16:15:04Z</dc:date>
    <item>
      <title>Spatial Map Series: index layer by symbology</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/spatial-map-series-index-layer-by-symbology/idi-p/1501903</link>
      <description>&lt;P&gt;I would like to suggest some additional functionality to the Spatial Map Series: create spatial map series by current symbology or by field.&lt;/P&gt;&lt;P&gt;Context from my screenshots, I want to export a series of maps of a landscape layer by SUBAREA.&amp;nbsp; each map should show all landscape features within that subarea. right now my work around is to dissolve the layer by attribute and use that as my spatial extent. While this is not a huge pain, it does create extra steps that I think could be solved by having the option to choose the field to base the extents on. Maybe under layer there could be:&lt;/P&gt;&lt;P&gt;- create index by symbology&lt;/P&gt;&lt;P&gt;- create index by attribute&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ShannonJ_0-1720195484728.png" style="width: 568px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/108912iD9E8A8BEC678102B/image-dimensions/568x298?v=v2" width="568" height="298" role="button" title="ShannonJ_0-1720195484728.png" alt="ShannonJ_0-1720195484728.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I saw the "group by" option I got excited thinking I had solved my own problem, but that simply groups the layouts.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ShannonJ_1-1720195588940.png" style="width: 487px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/108914i8EE0E784E9A0CC2A/image-dimensions/487x304?v=v2" width="487" height="304" role="button" title="ShannonJ_1-1720195588940.png" alt="ShannonJ_1-1720195588940.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is a fairly common workflow for me so saving a few steps can make a big difference!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 16:15:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/spatial-map-series-index-layer-by-symbology/idi-p/1501903</guid>
      <dc:creator>ShannonJ</dc:creator>
      <dc:date>2024-07-05T16:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Map Series: index layer by symbology</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/spatial-map-series-index-layer-by-symbology/idc-p/1502026#M30930</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/442595"&gt;@ShannonJ&lt;/a&gt;&amp;nbsp;would you be interested in an Python Map Automation (arcpy.mp) snippet.&lt;/P&gt;&lt;P&gt;What it would do is get a list of unique field values to iterate over, select all features with that value, set the extent of the map frame to the selected features, and export before moving onto the next unique value.&amp;nbsp; Individual pages could be generated or, if a PDF, optional, appended all into a single PDF.&lt;/P&gt;&lt;P&gt;Jeff - arcpy.mp and Layout teams&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 21:11:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/spatial-map-series-index-layer-by-symbology/idc-p/1502026#M30930</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2024-07-05T21:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Map Series: index layer by symbology</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/spatial-map-series-index-layer-by-symbology/idc-p/1502326#M30938</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1134"&gt;@JeffBarrette&lt;/a&gt;&amp;nbsp;, thanks for you reply - I would be interested in the snippet, it sounds like it'll get me half way there. Ideally I'd be able to review the layouts before exporting as I label the features as well so there is always some refinement to do rather than an export and done. It sounds like what you're describing above does the export without being able to review first?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 11:26:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/spatial-map-series-index-layer-by-symbology/idc-p/1502326#M30938</guid>
      <dc:creator>ShannonJ</dc:creator>
      <dc:date>2024-07-08T11:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Map Series: index layer by symbology</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/spatial-map-series-index-layer-by-symbology/idc-p/1502495#M30942</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/442595"&gt;@ShannonJ&lt;/a&gt;&amp;nbsp;Below is a snippet of code.&amp;nbsp; Keep in mind that there are number of different approaches and things to consider.&amp;nbsp; In the example below, I'm exporting a Layout, not a map series.&amp;nbsp; If you have dynamic text and other features managed by the map series, then you could need to update that using arcpy.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;import arcpy, os, sys&lt;BR /&gt;relpath = os.path.dirname(sys.argv[0])&lt;/P&gt;&lt;P&gt;p = arcpy.mp.ArcGISProject(os.path.join(relpath, 'MapSeriesExamples.aprx'))&lt;BR /&gt;m = p.listMaps('StatesWithRegions')[0]&lt;BR /&gt;l = m.listLayers('States_WithRegions')[0]&lt;/P&gt;&lt;P&gt;#unique values in layer&lt;BR /&gt;all_values = [row[0] for row in arcpy.da.SearchCursor(l, 'sub_region')]&lt;BR /&gt;unique_values = set(all_values)&lt;BR /&gt;print(unique_values)&lt;/P&gt;&lt;P&gt;#reference layout and map frame&lt;BR /&gt;lyt = p.listLayouts('BasedOnSelection')[0]&lt;BR /&gt;mf = lyt.listElements('MapFrame_Element', 'ZoomToRegion')[0]&lt;/P&gt;&lt;P&gt;#create&lt;BR /&gt;comboPDF = arcpy.mp.PDFDocumentCreate(os.path.join(relpath, 'Output', 'CombinedOutput.pdf'))&lt;/P&gt;&lt;P&gt;#iterate through the unique list of field values and:&lt;BR /&gt;# - create a selection&lt;BR /&gt;# - set the map frame extent to that selection&lt;BR /&gt;# - export to temp PDF, combine into combo pdf, then delete the temp pdf&lt;BR /&gt;# - clear the selection&lt;BR /&gt;for value in unique_values:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; query = f"SUB_REGION = '{value}'"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; arcpy.SelectLayerByAttribute_management(l, 'NEW_SELECTION', query)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; mf.camera.setExtent(mf.getLayerExtent(l, True, True))&lt;BR /&gt;&amp;nbsp; &amp;nbsp; lyt.exportToPDF(os.path.join(relpath, 'Output', 'temp.pdf'))&lt;BR /&gt;&amp;nbsp; &amp;nbsp; comboPDF.appendPages(os.path.join(relpath, 'Output', 'Temp.pdf'))&lt;BR /&gt;&amp;nbsp; &amp;nbsp; os.remove(os.path.join(relpath, 'Output', 'Temp.pdf'))&lt;BR /&gt;&amp;nbsp; &amp;nbsp; arcpy.SelectLayerByAttribute_management(l, 'CLEAR_SELECTION')&lt;/P&gt;&lt;P&gt;comboPDF.saveAndClose()&lt;BR /&gt;os.startfile(os.path.join(relpath, 'Output','CombinedOutput.pdf'))&lt;BR /&gt;print('Finished')&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 200px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/109070iD1A52049143D8063/image-size/small?v=v2&amp;amp;px=200" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 14:45:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/spatial-map-series-index-layer-by-symbology/idc-p/1502495#M30942</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2024-07-08T14:45:33Z</dc:date>
    </item>
  </channel>
</rss>

