Workspace To Geodatabase (Samples)
Summary
Loads all raster datasets from one workspace or geodatabase to another workspace or geodatabase as individual raster datasets.

Usage
-
Loading and storage parameters can be set in the Environment Settings under the Raster Storage Settings section.
-
This sample tool was created using Python. The code can be viewed and edited to help you write your own scripts.
-
The Raster Analysis Environment Settings are not valid for this tool.
Syntax
Parameter | Explanation | Data Type |
input_workspace |
The input workspace can be a directory, a personal geodatabase, file geodatabase, or an ArcSDE geodatabase. | Folder | Workspace |
output_geodatabase |
The output geodatabase can be a personal geodatabase, file geodatabase, or an ArcSDE geodatabase. | Workspace | Feature Dataset |
config_keyword (Optional) |
Specifies the storage parameters (configuration) for a file geodatabase and an ArcSDE geodatabase. Personal geodatabases do not use configuration keywords. ArcSDE configuration keywords are set up by your database administrator. | String |
Code Sample
import arcgisscripting
gp = arcgisscripting.create()
gp.WorkspaceToGeodatabase_samples("D:\\temp\\tempws", "Database Connections\\raster.sde", "#")