Label | Explanation | Data Type |
Input Raster Dataset | The raster dataset from which you want to create the world file. | Raster Dataset |
Derived Output
Label | Explanation | Data Type |
Updated Input Raster Dataset | The output raster dataset. | Raster Dataset |
Creates a world file based on the pixel size and the location of the upper left pixel.
If the transformation cannot be expressed as a world file, this tool will write an approximate affine transformation into the world file, with an x on the end of the extension name. For example, a TIFF image with this approximate affine transformation has the extension .tfwx. This is to signify that this is not a standard world file; it is only an approximation.
Label | Explanation | Data Type |
Input Raster Dataset | The raster dataset from which you want to create the world file. | Raster Dataset |
Label | Explanation | Data Type |
Updated Input Raster Dataset | The output raster dataset. | Raster Dataset |
arcpy.management.ExportRasterWorldFile(in_raster_dataset)
Name | Explanation | Data Type |
in_raster_dataset | The raster dataset from which you want to create the world file. | Raster Dataset |
Name | Explanation | Data Type |
out_raster_dataset | The output raster dataset. | Raster Dataset |
This is a Python sample for the ExportRasterWorldFile tool.
import arcpy
arcpy.ExportRasterWorldFile_management("c:/data/image.tif")
This is a Python script sample for the ExportRasterWorldFile tool.
##====================================
##Export Raster World File
##Usage: ExportRasterWorldFile_management in_raster
import arcpy
arcpy.env.workspace = "C:/Workspace"
##Export tfw file from the intput Raster Dataset
arcpy.ExportRasterWorldFile_management("image.tif")