Has anyone created a dataframe geotiff using arcpy.mapping.ExportToTIFF() with satisfactory results?

My output has poor quality and the georeferencing is significantly off. This example is the geotiff at 50% transparency on top of my data. The shift between "South El Monte" is the best shift example. enter image description here

Here is an example of the code:

currentMxd = arcpy.mapping.MapDocument(r"F:\Test\amp_Edit.mxd")
dataFrame = arcpy.mapping.ListDataFrames(currentMxd, "Layers")[0] 
arcpy.mapping.ExportToTIFF(currentMxd, r"F:\Test\outtif.tif", dataFrame, df_export_width = 46000, df_export_height = 29000, resolution = 1000, geoTIFF_tags = True) 
  • I should also note that I am trying to create the dataframe geotiff from an MXD that is saved in Layout view. – TurboGus May 29 '12 at 19:41

After further research I found a solution to my problem here.

I was using an incorrect aspect ratio for my output image. After preserving the aspect ratio of my dataframe the output lined up perfect.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.