1

I try to export my map (layout or data view doesn't really matter) to a georeferenced tiff-file (geotiff). However, this presumably easy task is proving rather difficult to accomplish.

I first tried the code from this question:

import arcpy.mapping
mxd = arcpy.mapping.MapDocument("CURRENT")
arcpy.mapping.ListDataFrames(mxd)
arcpy.mapping.ExportToTIFF(mxd,r"D:\out2.tif","PAGE_LAYOUT",640,480,96)

All is good, a tif file is exported. But for some reason doesn't it contain any coordinates.

Some further research revealed this ArcGIS help page with a very detailed workflow. But it refers to an option that is not available in my export window:

4, Choose Layout GeoTIFF (*.tif) from the Save as type drop-down list.

enter image description here

What am I missing here? Do I need another extension to create geotiffs?

  • 2
    Have you seen this question? gis.stackexchange.com/questions/26412/… – user2856 Feb 14 '14 at 9:48
  • 1
    Try export Data Frame object rather than Page Layout. Page layout is in page coordinates, this may do some confusion. – Tomek Feb 14 '14 at 10:05
  • @Luke, I did see that question, but didn't notice the difference between layout and data view. Changing that did the trick (also thanks to @Tomek)! – Martin Feb 14 '14 at 13:56
1

To make a geotif, just tick the 'write world file' option at the bottom of the export window. It writes a world file that includes the georeferencing info for your .tiff.

You can do the same for .jpg and .pdf files, for use in other software packages.

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.