Summary
Loads multiple raster datasets into a geodatabase.
Usage
The output is the location of the geodatabase where you will store the raster.
The Cellsize and Mask parameters are ignored by this tool.
Syntax
RasterToGeodatabase(Input_Rasters, Output_Geodatabase, {Configuration_Keyword})
Parameter | Explanation | Data Type |
Input_Rasters [Input_Rasters,...] | Input raster dataset(s). | Raster Dataset |
Output_Geodatabase | The path and name of a geodatabase. | Workspace |
Configuration_Keyword (Optional) | Specifies the storage parameters (configuration) for a geodatabase. Configuration keywords are set up by your database administrator. | String |
Derived Output
Name | Explanation | Data Type |
Derived_Geodatabase | The geodatabase containing the new rasters. | Workspace |
Code sample
This is a Python sample for RasterToGeodatabase.
import arcpy
from arcpy import env
env.workspace = "c:/data"
arcpy.RasterToGeodatabase_conversion("test.tif;test2.tif;test3.tif",
"ToGDB.gdb", "")
This is a Python script sample for RasterToGeodatabase.
##=========================
##Raster To Geodatabase
##Usage: RasterToGeodatabase_conversion Input_Rasters;Input_Rasters...
## Output_Geodatabase {Configuration_Keyword}
import arcpy
arcpy.env.workspace = r"\\MyMachine\PrjWorkspace\RasGP"
##Convert Multiple Raster Dataset to FGDB
arcpy.RasterToGeodatabase_conversion("test.tif;test2.tif;test3.tif",
"ToGDB.gdb","MAX_FILE_SIZE_4GB")
Environments
Licensing information
- Basic: Yes
- Standard: Yes
- Advanced: Yes