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

Raster To Geodatabase (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

Load multiple raster datasets into a geodatabase or raster catalog.

If this tool is used to load raster datasets into a raster catalog, then the Calculate Default Spatial Grid Index (Data Management) will need to be run after the loading is completed.


Usage tips

Command line syntax
An overview of the Command Line window
RasterToGeodatabase_conversion <Input_Rasters;Input_Rasters...> <Output_Geodatabase> {Configuration_Keyword}

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

Input raster dataset(s).

Raster Dataset
<Output_Geodatabase>

Either the path and name of a geodatabase or the path and name of a raster catalog.

Workspace | Raster Catalog
{Configuration_Keyword}

Specifies the storage parameters (configuration) for geodatabases in file and ArcSDE geodatabases. Personal geodatabases do not use configuration keywords.

ArcSDE configuration keywords are set up by your database administrator.

String
Data types for geoprocessing tool parameters


Command line example

RasterToGeodatabase_conversion raster1.bil;raster2.bil;raster3.img;raster4.img d:\rasterdata\rasters.mdb storage

Scripting syntax
About getting started with writing geoprocessing scripts
RasterToGeodatabase_conversion (Input_Rasters, Output_Geodatabase, Configuration_Keyword)

Parameter Explanation Data Type
Input_Rasters (Required)

Input raster dataset(s).

Raster Dataset
Output_Geodatabase (Required)

Either the path and name of a geodatabase or the path and name of a raster catalog.

Workspace | Raster Catalog
Configuration_Keyword (Optional)

Specifies the storage parameters (configuration) for geodatabases in file and ArcSDE geodatabases. Personal geodatabases do not use configuration keywords.

ArcSDE configuration keywords are set up by your database administrator.

String

Data types for geoprocessing tool parameters


Script example

# RasterToGeodatabase_sample.py
# Description: load multiple rasters to geodatabase in a batch
# Requirements: None
# Author: ESRI
# Date: 1/21/03

# Usage: RasterToGeodatabase_conversion <Input_Rasters;Input_Rasters...> <Output_Geodatabase> {Configuration_Keyword}
# Command line: RasterToGeodatabase c:/testdata/seattle1.tif;c:/testdata/seattle2.tif C:/testdata/raster.mdb #

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

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

    # Process: RasterToGeodatabase_conversion
    gp.RasterToGeodatabase_conversion(InRaster,OutWorkspace,"#")

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

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