ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Export Raster World File

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

Creates a world file based on the pixel size and the location of the upper left pixel.

Usage

  • Your output world file will depend on the file format you are working with. For the valid world file extensions, refer to world files for raster datasets.

  • 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.

Syntax

ExportRasterWorldFile_management (in_raster_dataset)
ParameterExplanationData Type
in_raster_dataset

The raster dataset from which you want to create the world file.

Raster Dataset

Code sample

ExportRasterWorldFile example 1 (Python window)

This is a Python sample for the ExportRasterWorldFile tool.

import arcpy
arcpy.ExportRasterWorldFile_management("c:/data/image.tif")
ExportRasterWorldFile example 2 (stand-alone window)

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")

Environments

  • Current Workspace
  • Scratch Workspace

Licensing information

  • ArcGIS for Desktop Basic: Yes
  • ArcGIS for Desktop Standard: Yes
  • ArcGIS for Desktop Advanced: Yes

Related topics

  • An overview of the Raster toolset
  • Environment settings for raster data
  • World files for raster datasets
  • Fundamentals of georeferencing a raster dataset

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal