Raster To Other Format (multiple) (Conversion) |
|
Release 9.2
Last modified April 2, 2008 |
![]() ![]() ![]() Print all topics in : "Tools" |
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 and Scripting
The input raster datasets can be any valid raster dataset that ArcGIS can recognize.
Allows you to batch convert raster datasets into another raster dataset format. This is useful if you receive raster datasets in one format but you (or your client) prefer to use BMP, GIF, GRID, IMAGINE, JPEG, JPEG 2000, PNG or TIFF.
The output workspace is the pathname (location) where you want the new raster dataset to be stored.
The following environments affect this tool: current workspace, scratch workspace, output coordinate system, output extent, output has Z values, Z resolution, output CONFIG keyword, output spatial grid 1,2,3, output XY domain, output Z domain, pyramid, raster statistics, compression, and tile size.
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.
|
String |
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.
|
String |
# 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.