ArcGIS Desktop

  • Documentation
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

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
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Raster To Other Format

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

Summary

Converts a raster dataset from one format to another.

Usage

  • This tool allows you to batch convert many raster datasets to a different format at once.

  • If a raster exists with the same name and format of an input raster, that output will have an incremented name. For example, if you have two input rasters named elevras.img and landuse.tif, and the Raster Format is set to TIFF, the output rasters will be named something similar to elevras.tif and landuse_1.tif.

  • If any of the input rasters cannot be converted to the specified output format as a result of the limitations for that format—for example, supported pixel types or number of bands—an error will be returned. The tool will then proceed to the next input raster in the list.

Syntax

RasterToOtherFormat_conversion (Input_Rasters, Output_Workspace, {Raster_Format})
ParameterExplanationData Type
Input_Rasters
[in_raster,...]

The raster datasets to convert.

Raster Dataset
Output_Workspace

The folder where the raster dataset will be written in its new format.

Workspace; Raster Catalog
Raster_Format
(Optional)

The format of the new raster dataset.

  • BIL —Esri Band Interleaved by Line file.
  • BIP —Esri Band Interleaved by Pixel file.
  • BMP —Microsoft bitmap graphic raster dataset format.
  • BSQ —Esri Band Sequential file.
  • DAT —ENVI DAT file.
  • GIF —Graphic Interchange Format for raster datasets.
  • GRID —Esri Grid raster dataset format.
  • IMAGINE Image —ERDAS IMAGINE raster data format.
  • JP2000 —JPEG 2000 raster dataset format.
  • JPEG —Joint Photographic Experts Group raster dataset format.
  • PNG —Portable Network Graphic raster dataset format.
  • TIFF —Tagged Image File Format for raster datasets.
String

Code sample

RasterToOtherFormat example 1 (Python window)

This sample converts several input rasters of different formats and outputs them as rasters all of the same format.

import arcpy
from arcpy import env
env.workspace = "c:/data/PrjWorkspace/RasGP"
arcpy.RasterToOtherFormat_conversion("test.tif;test2.tif;test3.tif",\
                                     "OtherFormat","BIL")
RasterToOtherFormat example 2 (stand-alone script)

This sample converts several input rasters of different formats and outputs them as rasters all of the same format..

##=========================
##Raster To Other Format
##Usage: RasterToOtherFormat_conversion Input_Rasters;Input_Rasters... Output_Workspace {TIFF | BIL | BIP 
##                                      | BMP | BSQ | ENVI DAT | GIF | GRID | IMAGINE Image | JP2000 | JPEG | PNG}
try:
    import arcpy
    arcpy.env.workspace = r"\\MyMachine\PrjWorkspace\RasGP"
    ##Convert Multiple Raster Dataset to FGDB
    arcpy.RasterToOtherFormat_conversion("test1;test2.tif;test3.img","OtherFormat.gdb","")
    ##Load Raster Catalog
    arcpy.RasterToOtherFormat_conversion("test.tif;test2.tif;test3.tif","OtherFormat","BIL")
except:
    print "Raster To Other Format exsample failed."
    print arcpy.GetMessages()

Environments

  • Compression
  • Current Workspace
  • Extent
  • NoData
  • Output CONFIG Keyword
  • Output XY Domain
  • Output Z Domain
  • Output Coordinate System
  • Output has Z values
  • Output Spatial Grid 1
  • Output Spatial Grid 2
  • Output Spatial Grid 3
  • Pyramid
  • Raster Statistics
  • Resampling Method
  • Scratch Workspace
  • Tile Size
  • Z Resolution

Licensing information

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

Related topics

  • An overview of the To Raster toolset

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • 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