<?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 Re: Pro Layout export to TIFF - how to set the georef_frame? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/pro-layout-export-to-tiff-how-to-set-the-georef/m-p/1068810#M42090</link>
    <description>&lt;P&gt;The next row in the table has the answer (even though the description of the parameter is obviously incorrect):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tim_McGinnes_0-1623838671534.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16076i56276FF86E9AFC2F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tim_McGinnes_0-1623838671534.png" alt="Tim_McGinnes_0-1623838671534.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You need to pass the MapFrame that will be used to setup the georeferencing. Here's a basic example. This does export with both the tags and tfw file:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;p=arcpy.mp.ArcGISProject("CURRENT")
l=p.listLayouts()[0]
mf=l.listElements('MAPFRAME_ELEMENT')[0]
l.exportToTIFF("out.tif",world_file=True,geoTIFF_tags=True,georef_mapframe=mf)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jun 2021 10:19:15 GMT</pubDate>
    <dc:creator>Tim_McGinnes</dc:creator>
    <dc:date>2021-06-16T10:19:15Z</dc:date>
    <item>
      <title>Pro Layout export to TIFF - how to set the georef_frame?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/pro-layout-export-to-tiff-how-to-set-the-georef/m-p/1068764#M42079</link>
      <description>&lt;P&gt;The Pro 2.7 docs imply that it is possible to export a Layout to a TIFF that is georeferenced, either by both embedded geoTIFF tags and/or&amp;nbsp; by a world file using the&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;exportToTIFF&lt;/STRONG&gt;&amp;nbsp;method:&lt;BR /&gt;(See&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/2.7/arcpy/mapping/layout-class.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/2.7/arcpy/mapping/layout-class.htm)&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MicZatorsky_AEC_1-1623823588882.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16069i0CA1CAE4217190CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="MicZatorsky_AEC_1-1623823588882.png" alt="MicZatorsky_AEC_1-1623823588882.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have a simple map series already configured in Pro, and I'm calling &lt;STRONG&gt;exportToTIFF&lt;/STRONG&gt; in this code :&lt;/P&gt;&lt;PRE&gt;import arcpy, os, sys&lt;BR /&gt;&lt;BR /&gt;import arcpy, os, sys&lt;BR /&gt;p = arcpy.mp.ArcGISProject(r"C:\Temp\Scratch.aprx")&lt;BR /&gt;l = p.listLayouts()[0]&lt;BR /&gt;if not l.mapSeries is None:&lt;BR /&gt;    ms = l.mapSeries&lt;BR /&gt;    if ms.enabled:&lt;BR /&gt;        for pageNum in range(1, ms.pageCount + 1):&lt;BR /&gt;            ms.currentPageNumber = pageNum&lt;BR /&gt;            print("Exporting {0}".format(ms.pageRow.msi))&lt;BR /&gt;            pageName = ms.pageRow.msi&lt;BR /&gt;            filename = os.path.join(r"C:\Temp", f"image_{ms.pageRow.msi}.tif")&lt;BR /&gt;            l.exportToTIFF(out_tif=filename,world_file=True,geoTIFF_tags=True)&lt;/PRE&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;(Adapted from&amp;nbsp;&lt;SPAN&gt;MapSeries example 2 in&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/mapseries-class.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/mapseries-class.htm&lt;/A&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As is, this is exporting TIFs&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&amp;nbsp;but without world files or geoTIFF tags &lt;span class="lia-unicode-emoji" title=":frowning_face:"&gt;☹️&lt;/span&gt;.&lt;/P&gt;&lt;P&gt;How do I set&amp;nbsp;a valid &lt;STRONG&gt;georef_mapframe&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp;in this code such that I would get geoTIFFs or a world file?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 06:20:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/pro-layout-export-to-tiff-how-to-set-the-georef/m-p/1068764#M42079</guid>
      <dc:creator>MicZatorsky_AEC</dc:creator>
      <dc:date>2021-06-16T06:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Pro Layout export to TIFF - how to set the georef_frame?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/pro-layout-export-to-tiff-how-to-set-the-georef/m-p/1068810#M42090</link>
      <description>&lt;P&gt;The next row in the table has the answer (even though the description of the parameter is obviously incorrect):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tim_McGinnes_0-1623838671534.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16076i56276FF86E9AFC2F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tim_McGinnes_0-1623838671534.png" alt="Tim_McGinnes_0-1623838671534.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You need to pass the MapFrame that will be used to setup the georeferencing. Here's a basic example. This does export with both the tags and tfw file:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;p=arcpy.mp.ArcGISProject("CURRENT")
l=p.listLayouts()[0]
mf=l.listElements('MAPFRAME_ELEMENT')[0]
l.exportToTIFF("out.tif",world_file=True,geoTIFF_tags=True,georef_mapframe=mf)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 10:19:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/pro-layout-export-to-tiff-how-to-set-the-georef/m-p/1068810#M42090</guid>
      <dc:creator>Tim_McGinnes</dc:creator>
      <dc:date>2021-06-16T10:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Pro Layout export to TIFF - how to set the georef_frame?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/pro-layout-export-to-tiff-how-to-set-the-georef/m-p/1068905#M42100</link>
      <description>&lt;P&gt;Thank you for bringing this to our attention.&amp;nbsp; This was obviously a copy/paste error that describes clip to graphics.&amp;nbsp; As Tim suggests, the georef_mapframe parameter is what allows this to happen.&amp;nbsp; We will fix the help topic.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jeff - Layout and arcpy.mp teams&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 14:41:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/pro-layout-export-to-tiff-how-to-set-the-georef/m-p/1068905#M42100</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2021-06-16T14:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Pro Layout export to TIFF - how to set the georef_frame?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/pro-layout-export-to-tiff-how-to-set-the-georef/m-p/1069140#M42124</link>
      <description>&lt;P&gt;That worked!&amp;nbsp; Many thanks to both of you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 22:14:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/pro-layout-export-to-tiff-how-to-set-the-georef/m-p/1069140#M42124</guid>
      <dc:creator>MicZatorsky_AEC</dc:creator>
      <dc:date>2021-06-16T22:14:59Z</dc:date>
    </item>
  </channel>
</rss>

