Workspace To Raster Catalog (Data Management) |
|
Release 9.2
Last modified November 29, 2010 |
![]() ![]() ![]() Print all topics in : "Tools" |
Loads all the raster datasets that are stored within the same workspace into an existing raster catalog.
Usage tips
All raster datasets within the specified workspace will be loaded into the raster catalog.
The raster catalog must already exist for this tool to run.
By default, the spatial reference and geotransformation of the raster datasets are persisted in the raster catalog. If you want to project the raster datasets to the spatial reference of the raster column in the raster catalog during loading, check the Project On-the-fly option.
With this tool, loading raster datasets into a raster catalog, the Spatial Grid Index is automatically calculated. Learn more about geodatabase items — Spatial index grid size
The following environments affect this tool: current workspace, raster statistics, pyramid, compression, and tile size.
Command line syntax
An overview of the Command Line window
Workspacetorastercatalog_management <in_workspace> <in_raster_catalog> {NONE | INCLUDE_SUBDIRECTORIES} {NONE | PROJECT_ONFLY}
Parameter | Explanation | Data Type |
<in_workspace> |
The workspace that contains all the raster datasets to be loaded into the raster catalog. |
Workspace |
<in_raster_catalog> |
An existing raster catalog that will have all the raster datasets from the workspace loaded into it. |
Raster Catalog |
{NONE | INCLUDE_SUBDIRECTORIES} |
Specify whether to include subdirectories or not.
|
Boolean |
{NONE | PROJECT_ONFLY} |
Specify whether to project the raster datasets projected on the fly or not.NONE — All raster datasets are loaded to the raster catalog with the original spatial reference of the raster dataset. This is the default.PROJECT_ONFLY — All raster datasets will be projected on the fly (to the coordinate system specified in the raster column) when loaded to the raster catalog. |
Boolean |
Workspacetorastercatalog_management c:/Redlands_data 'Database Connections/Connection to raster.sde/raster.redlands_catalog' INCLUDE_SUBDIRECTORIES PROJECT_ONFLY
Scripting syntax
About getting started with writing geoprocessing scripts
Workspacetorastercatalog_management (in_workspace, in_raster_catalog, include_subdirectories, project)
Parameter | Explanation | Data Type |
in_workspace (Required) |
The workspace that contains all the raster datasets to be loaded into the raster catalog. |
Workspace |
in_raster_catalog (Required) |
An existing raster catalog that will have all the raster datasets from the workspace loaded into it. |
Raster Catalog |
include_subdirectories (Optional) |
Specify whether to include subdirectories or not.
|
Boolean |
project (Optional) |
Specify whether to project the raster datasets projected on the fly or not.NONE — All raster datasets are loaded to the raster catalog with the original spatial reference of the raster dataset. This is the default.PROJECT_ONFLY — All raster datasets will be projected on the fly (to the coordinate system specified in the raster column) when loaded to the raster catalog. |
Boolean |
# Create the geoprocessing object import arcgisscripting gp = arcgisscripting.create() gp.workspacetorastercatalog_management("c:/redlands_data", 'Database Connections/Connection to raster.sde/raster.redlands_catalog', 'INCLUDE_SUBDIRECTORIES', 'PROJECT_ONFLY')