Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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) 
share|improve this question
    
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

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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