Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > Conversion toolbox > To Raster toolset > Tools

Raster To Other Format (multiple) (Conversion)

Release 9.2
Last modified April 2, 2008
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Tools"


Related Topics

Converts one or more raster dataset formats supported by ArcGIS to a BMP, GIF, GRID, IMAGINE, JPEG, JPEG 2000, PNG TIFF, or to a geodatabase raster dataset format.


Usage tips

Command line syntax
An overview of the Command Line window
RasterToOtherFormat_conversion <Input_Rasters; Input_Rasters...> <Output_Workspace> {BMP | GIF | GRID | IMAGINE Image | JP2000 | JPEG | PNG | TIFF}

Parameter Explanation Data Type
<Input_Rasters; Input_Rasters...>

The input raster datasets that you wish to convert.

Raster Dataset
<Output_Workspace>

The location where converted raster datasets will be stored.

Workspace | Raster Catalog
{BMP | GIF | GRID | IMAGINE Image | JP2000 | JPEG | PNG | TIFF}

The format of the output raster dataset.

  • BMP — Bitmap graphic raster dataset format.
  • GIF — Graphic Interchange Format for raster datasets
  • GRID — ESRI's 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 — Tag Image File Format for raster datasets

String
Data types for geoprocessing tool parameters


Command line example

RasterToOtherFormat_conversion raster1.bil;raster2.bil;raster3.bil d:\rasterdatasets TIFF

Scripting syntax
About getting started with writing geoprocessing scripts
RasterToOtherFormat_conversion (Input_Rasters, Output_Workspace, Raster_Format)

Parameter Explanation Data Type
Input_Rasters (Required)

The input raster datasets that you wish to convert.

Raster Dataset
Output_Workspace (Required)

The location where converted raster datasets will be stored.

Workspace | Raster Catalog
Raster_Format (Optional)

The format of the output raster dataset.

  • BMP — Bitmap graphic raster dataset format.
  • GIF — Graphic Interchange Format for raster datasets
  • GRID — ESRI's 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 — Tag Image File Format for raster datasets

String

Data types for geoprocessing tool parameters


Script example

# RasterToOtherFormat_sample.py
# Description: 
#   Converts multiple rasters to another format in a batch.
# Requirements: None
# Author: ESRI
# Date: Oct 20, 2005
# Import system modules
import arcgisscripting

# Create the Geoprocessor object
gp = arcgisscripting.create()

try:
    # Set local variables
    InRaster = "C:/testdata/seattle1.tif;C:/testdata/seattle2.tif"
    OutWorkspace = "C:/testdata"

    # Process: RasterToOtherFormat_conversion (convert to IMG format)
    gp.RasterToOtherFormat_conversion(InRaster,OutWorkspace,"IMAGINE Image")

except:
    # Print error message if an error occurs
    print gp.GetMessages()

Map Algebra syntax
Not available.

ArcObjects syntax
See ToRasterDataset.

The Spatial Analyst extension must be present to use this link.

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.