1

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) 
1
  • I should also note that I am trying to create the dataframe geotiff from an MXD that is saved in Layout view.
    – TurboGus
    Commented May 29, 2012 at 19:41

1 Answer 1

2

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 and acknowledge you have read our privacy policy.

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