<?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: Batch export to GeoTIFFs for set polygon features in data frame? in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737195#M7935</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's what I thought Jeff. but I wanted to make sure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did some testing.&amp;nbsp; I am using the 10.1 beta.&amp;nbsp; The first script I had didn't include the line that begins with Print.&amp;nbsp; It produced geotiffs that were roughly compressed to 70% of the lengths in the E-W direction and somewhat rotated counterclockwise.&amp;nbsp; (When I first noticed this the helpful ESRI tech person indicated he was getting somewhat strange results and said he would look at it further to see if it was a bug.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Next I added the print line and nothing seemed to change in the result but I did see a message box indicating it was exporting page 1 then page 2, ....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used for my export width and heights numbers I got just using a straight export to geotiff at the resolution I wanted.&amp;nbsp; I wondered if the problem was in those numbers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I exported a layout to tif and found the widths and heights from that and then used those in the script.&amp;nbsp; I got a much better result roughly compressed to 99% of the lengths in the E-W direction with a very slight rotation.&amp;nbsp; So now in my rather arcpy ignorant mind I'm thinking this really is the key to the problem.&amp;nbsp; Would that be it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If so my question to you is how does one determine what the widths and height parameters should be in order to get a perfect match of the geotiff to the original data?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Having said all this, I note that it is still the View that is being exported to geotiff, not the layout.&amp;nbsp; Is there a method in ArcPy to alternately export the entire Layout to georeferenced tif so that the map legend gets included?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Oct 2011 19:37:04 GMT</pubDate>
    <dc:creator>JohnSobetzer</dc:creator>
    <dc:date>2011-10-14T19:37:04Z</dc:date>
    <item>
      <title>Batch export to GeoTIFFs for set polygon features in data frame?</title>
      <link>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737190#M7930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not a particularly savvy user, as my question will make clear, so any help is greatly appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What I'd like to do is use some sort of batch map export, whereby I could export a series of GeoTIFFs driven by a list of polygon features in a data frame. I tried playing with the functionality in data driven pages, but the only export options are from the layout view, and what I need are georeferenced images (to be batch segmented for further analysis). Any ideas how to proceed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 21:21:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737190#M7930</guid>
      <dc:creator>EdGage</dc:creator>
      <dc:date>2011-10-10T21:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Batch export to GeoTIFFs for set polygon features in data frame?</title>
      <link>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737191#M7931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you are using 9x you can get a wonderful Arcscript called Zoom through features/bookmarks and export to graphics file.&amp;nbsp; If will produce geotiffs and other rasters from the view, and other rasters or pdfs from the layout.&amp;nbsp; I would love to run it on 10x but I can't install it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are using 10x there is the possibility of using arcpy but the script that was nicely provided to me by an ESRI staffer produced odd results and it was determined there was a bug.&amp;nbsp; I don't know if the bug was in 10.1, both 10.0 and 1 or in the arcpy module.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 15:53:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737191#M7931</guid>
      <dc:creator>JohnSobetzer</dc:creator>
      <dc:date>2011-10-11T15:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Batch export to GeoTIFFs for set polygon features in data frame?</title>
      <link>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737192#M7932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try arcpy.mapping.&amp;nbsp; Check out the help and samples at the following link:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/DataDrivenPages/00s300000030000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/DataDrivenPages/00s300000030000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I made changes to Sample #1 so you can export just the data frame and I also changed it to ExportToTIFF.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
mxd = arcpy.mapping.MapDocument(r"C:\Project\NameOfMXD.mxd")
df = arcpy.mapping.ListDataFrames(mxd, "Dataframe Name")[0]
for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1):
&amp;nbsp;&amp;nbsp;&amp;nbsp; mxd.dataDrivenPages.currentPageID = pageNum
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Exporting page {0} of {1}".format(str(mxd.dataDrivenPages.currentPageID), str(mxd.dataDrivenPages.pageCount))
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.mapping.ExportToTiff(mxd, r"C:\Project\OutPut\Page" + str(pageNum) + ".tif", df)
del mxd&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:24:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737192#M7932</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2021-12-12T07:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Batch export to GeoTIFFs for set polygon features in data frame?</title>
      <link>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737193#M7933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Should this produce a geotiff?&amp;nbsp; The sample I was given provided for geotiff tags and it also required export widths and heights which seems to match up with the notion of exporting a view.&amp;nbsp; But then again it failed to properly georeference the results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't seem to find any ability to control the quality &amp;amp; dpi of the result either in this sample.&amp;nbsp; It didn't seem to zoom to the extents either.&amp;nbsp; So I'm obviously missing something.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 17:06:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737193#M7933</guid>
      <dc:creator>JohnSobetzer</dc:creator>
      <dc:date>2011-10-12T17:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Batch export to GeoTIFFs for set polygon features in data frame?</title>
      <link>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737194#M7934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Its all in the help link I provided.&amp;nbsp; The sample does not exercise all parameters but here they are.&amp;nbsp; The help explains each one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Syntax&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ExportToTIFF (map_document, out_tiff, {data_frame}, {df_export_width}, {df_export_height}, {resolution}, {world_file}, {color_mode}, {tiff_compression}, {geoTIFF_tags})&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 13:53:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737194#M7934</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2011-10-13T13:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Batch export to GeoTIFFs for set polygon features in data frame?</title>
      <link>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737195#M7935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's what I thought Jeff. but I wanted to make sure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did some testing.&amp;nbsp; I am using the 10.1 beta.&amp;nbsp; The first script I had didn't include the line that begins with Print.&amp;nbsp; It produced geotiffs that were roughly compressed to 70% of the lengths in the E-W direction and somewhat rotated counterclockwise.&amp;nbsp; (When I first noticed this the helpful ESRI tech person indicated he was getting somewhat strange results and said he would look at it further to see if it was a bug.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Next I added the print line and nothing seemed to change in the result but I did see a message box indicating it was exporting page 1 then page 2, ....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used for my export width and heights numbers I got just using a straight export to geotiff at the resolution I wanted.&amp;nbsp; I wondered if the problem was in those numbers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I exported a layout to tif and found the widths and heights from that and then used those in the script.&amp;nbsp; I got a much better result roughly compressed to 99% of the lengths in the E-W direction with a very slight rotation.&amp;nbsp; So now in my rather arcpy ignorant mind I'm thinking this really is the key to the problem.&amp;nbsp; Would that be it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If so my question to you is how does one determine what the widths and height parameters should be in order to get a perfect match of the geotiff to the original data?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Having said all this, I note that it is still the View that is being exported to geotiff, not the layout.&amp;nbsp; Is there a method in ArcPy to alternately export the entire Layout to georeferenced tif so that the map legend gets included?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 19:37:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737195#M7935</guid>
      <dc:creator>JohnSobetzer</dc:creator>
      <dc:date>2011-10-14T19:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Batch export to GeoTIFFs for set polygon features in data frame?</title>
      <link>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737196#M7936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you both for your postings on the question. I ran the script and get output ok, but have the same distortion issue when importing the exported images back into the project file. I tried the approach that John posted (manually exporting a view and using the pixel dimensions as input into the {df_export_width}, {df_export_height} fields in the python script). This improved the situation, but not perfectly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Interestingly, the results are different whether the exported files are specified with geotags or with separate world files; the former is more visibly distorted, the latter less distorted but spatially offset (all other parameters the same).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 14:57:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737196#M7936</guid>
      <dc:creator>EdGage</dc:creator>
      <dc:date>2011-10-21T14:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Batch export to GeoTIFFs for set polygon features in data frame?</title>
      <link>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737197#M7937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The Bug seems to be still active.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried exporting GeoTIFFs via this Python script:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;mxd = arcpy.mapping.MapDocument("CURRENT")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;df = arcpy.mapping.ListDataFrames(mxd)[0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; mxd.dataDrivenPages.currentPageID = pageNum&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; arcpy.mapping.ExportToTIFF(mxd, r"C:\Projecs\Test\Page" + str(pageNum) + ".tif", data_frame=df, geoTIFF_tags=True)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;del mxd&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;del df&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;results are not correcty georeferenced.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe anybody has some further Ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;greetings&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 12:13:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737197#M7937</guid>
      <dc:creator>DavidRahe</dc:creator>
      <dc:date>2012-03-02T12:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Batch export to GeoTIFFs for set polygon features in data frame? [fixed]</title>
      <link>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737198#M7938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Solution Found!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found the solution to this problem from here: &lt;/SPAN&gt;&lt;A href="http://gis.stackexchange.com/questions/4515/how-do-you-write-a-world-file-when-exporting-a-tiff-with-arcpy-mapping"&gt;gis.stackexchange.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Combining that code with the code provided in this thread, I was able to export my clipped dataframes (via datadrivenpages) to .tiff.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This code runs in the Python Command window of ArcMap&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mxd = arcpy.mapping.MapDocument("CURRENT")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;df = arcpy.mapping.ListDataFrames(mxd)[0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ar = df.extent.height / df.extent.width&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mxd.dataDrivenPages.currentPageID = pageNum&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Exporting page {0} of {1}".format(str(mxd.dataDrivenPages.currentPageID), str(mxd.dataDrivenPages.pageCount))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.mapping.ExportToTIFF(mxd,r"C:\ImageTemp\" + str(pageNum) + ".tif",df,1024,1024*ar,48,True)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2012 14:53:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737198#M7938</guid>
      <dc:creator>AndrewMoffitt</dc:creator>
      <dc:date>2012-06-08T14:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Batch export to GeoTIFFs for set polygon features in data frame?</title>
      <link>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737199#M7939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Drewsky:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The reasons for the prior failures made sense; it fit with the odd results I kept getting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I should note when I tried copying and pasting the code you successfully used, I got this error: Parsing error IndentationError: expected an indented block (line 6)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So based on some earlier code I got from ESRI I indented that and subsequent lines and then added an unindented line with just these words: del mxd.&amp;nbsp; It worked.&amp;nbsp; I'd copy and paste the code into here but the lines don't indent properly and because one of them wordwraps and that seems to cause problems.&amp;nbsp; I don't know how to avoid that; it's a pain in the butt.&amp;nbsp; I'd like to be able to copy and paste code out of a text file using notebook, but that's tricky.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The upshot is that in 10.1 it produced a properly georeferenced tif, although a very low quality one given the 1024 x 1024 H &amp;amp; W and 48.&amp;nbsp; As you suggested the actual columns and rows were not 1024 x 1024 but 1024 x 983.&amp;nbsp; I increased them to 9306 x 9306 and 300 and got just what I wanted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since I wasn't the original poster I can't say answered, but great job.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 13:45:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737199#M7939</guid>
      <dc:creator>JohnSobetzer</dc:creator>
      <dc:date>2012-06-14T13:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Batch export to GeoTIFFs for set polygon features in data frame?</title>
      <link>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737200#M7940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;John Sobetzer, Did you figure out how to calculate the width and height exactly as ESRI does in their "Export Map" dialog?&amp;nbsp; If so, can you post a snippet of your calculation?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just opened up a related-thread.&amp;nbsp; Feel free to chime in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/93836-ExportToTif-width-height-calculation"&gt;http://forums.arcgis.com/threads/93836-ExportToTif-width-height-calculation&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2013 12:18:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737200#M7940</guid>
      <dc:creator>JosephArmbruster</dc:creator>
      <dc:date>2013-10-02T12:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Batch export to GeoTIFFs for set polygon features in data frame?</title>
      <link>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737201#M7941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not knowledgeable enough about arcpy to do that, and fortunately didn't need to be either.&amp;nbsp; Here's a clumsy way you might get what you are looking for.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The key additions that Drewsky made in the code involved the "ar".&amp;nbsp; In his code these two lines were the key to producing a properly geoereferenced tif that wasn't skewed since it got the actual pixels being used:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ar = df.extent.height / df.extent.width&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.mapping.ExportToTIFF(mxd,r"C:\ImageTemp\" + str(pageNum) + ".tif",df,1024,1024*ar,48,True) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I typically use 9036,9036*ar in my code and this produces pdfs that are 9036 x a number that depends on my window size.&amp;nbsp; (Right click on the tif in Windows Explorer - Properties - Details.)&amp;nbsp; If you run your code and look at a resulting tif you will see this second number.&amp;nbsp; In a batch I'm currently running it is 10339 in all the tifs.&amp;nbsp; If I didn't change the window size I could depend on that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 12:48:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737201#M7941</guid>
      <dc:creator>JohnSobetzer</dc:creator>
      <dc:date>2013-10-03T12:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Batch export to GeoTIFFs for set polygon features in data frame?</title>
      <link>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737202#M7942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The easiest solution is to create a page layout the size of the desired data frame and export the layout, not the data frame.&amp;nbsp; See response to related post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/93836-ExportToTif-width-height-calculation"&gt;http://forums.arcgis.com/threads/93836-ExportToTif-width-height-calculation&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 14:16:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737202#M7942</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2013-10-03T14:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Batch export to GeoTIFFs for set polygon features in data frame?</title>
      <link>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737203#M7943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm not knowledgeable enough about arcpy to do that, and fortunately didn't need to be either.&amp;nbsp; Here's a clumsy way you might get what you are looking for.&lt;BR /&gt;&lt;BR /&gt;The key additions that Drewsky made in the code involved the "ar".&amp;nbsp; In his code these two lines were the key to producing a properly geoereferenced tif that wasn't skewed since it got the actual pixels being used:&lt;BR /&gt;&lt;BR /&gt;ar = df.extent.height / df.extent.width&lt;BR /&gt;arcpy.mapping.ExportToTIFF(mxd,r"C:\ImageTemp\" + str(pageNum) + ".tif",df,1024,1024*ar,48,True) &lt;BR /&gt;&lt;BR /&gt;I typically use 9036,9036*ar in my code and this produces pdfs that are 9036 x a number that depends on my window size.&amp;nbsp; (Right click on the tif in Windows Explorer - Properties - Details.)&amp;nbsp; If you run your code and look at a resulting tif you will see this second number.&amp;nbsp; In a batch I'm currently running it is 10339 in all the tifs.&amp;nbsp; If I didn't change the window size I could depend on that.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This does not address my problem really (see the other post), since you are assuming that your data frame can always safely/clearly export into a 1024*Y image (which may not always be the case).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 15:49:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737203#M7943</guid>
      <dc:creator>JosephArmbruster</dc:creator>
      <dc:date>2013-10-03T15:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Batch export to GeoTIFFs for set polygon features in data frame?</title>
      <link>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737204#M7944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The easiest solution is to create a page layout the size of the desired data frame and export the layout, not the data frame.&amp;nbsp; See response to related post.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/93836-ExportToTif-width-height-calculation"&gt;http://forums.arcgis.com/threads/93836-ExportToTif-width-height-calculation&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Jeff&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems silly to me that I would have to create an entirely new page layout, just to do an export of a data frame.&amp;nbsp; When i'm in ArcMap and select "Export Map", I do not have to create a new layout before that operation.&amp;nbsp; My only issue is that of calculating the dimensions, precisely as the Export Map UI does.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 15:53:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737204#M7944</guid>
      <dc:creator>JosephArmbruster</dc:creator>
      <dc:date>2013-10-03T15:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Batch export to GeoTIFFs for set polygon features in data frame?</title>
      <link>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737205#M7945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That is because when the application is actually open the data frame window has a defined size.&amp;nbsp; But when you run a stand-alone script, the application isn't actually open, there is not a real point of reference and depending on your system settings, you may get different results on diferent machines.&amp;nbsp; Using a page layout that has a defined page space whether open or not, you will get consistent results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also - defining a page layout size and fixed dataframe size on the layout you will get consistent results.&amp;nbsp; Otherwise when you resize the TOC, the application, etc, the data frame size will be different. etc, etc,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 13:30:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737205#M7945</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2013-10-04T13:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Batch export to GeoTIFFs for set polygon features in data frame?</title>
      <link>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737206#M7946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I load my mxd and switch to data frame mode, the export-map dimensions are not altered by zooming in and out.&amp;nbsp; The dimensions of export-map remain the same and are being calculated to accomodate the extents of the data I have loaded.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Joe&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 12:24:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/batch-export-to-geotiffs-for-set-polygon-features/m-p/737206#M7946</guid>
      <dc:creator>JosephArmbruster</dc:creator>
      <dc:date>2013-10-10T12:24:54Z</dc:date>
    </item>
  </channel>
</rss>

