Raster To Geodatabase (multiple) (Conversion) |
|
Release 9.2
Last modified April 2, 2008 |
![]() ![]() ![]() Print all topics in : "Tools" |
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
The input raster dataset can be any valid raster dataset that ArcGIS can recognize.
The output is the location of the geodatabase where you will store the raster.
When converting the raster dataset to a personal geodatabase, the raster dataset is actually stored on the regular file system in a hidden folder. This prevents you from going over the 2 GB limit that is imposed on a personal geodatabase; the actual raster dataset is saved as an ERDAS IMAGINE file.
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. Learn more about geodatabase items — Spatial index grid size.
When converting the raster dataset to an ArcSDE geodatabase, the raster dataset is stored on the ArcSDE server as a raster SDE format. A configuration keyword can be specified (if configuration keywords are specified by the ArcSDE administrator).
The Raster Analysis Environment Settings are not valid for this tool.
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
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 |
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 |
# 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()