Workspace To New Raster Catalog (Samples)


Creates a new raster catalog and loads all the raster datasets in the input workspace, or geodatabase, to the raster catalog. The spatial reference of both the raster column and the geometry column are taken from the first raster dataset in the input workspace. The x,y domain of the geometry column is calculated with the union extents of all the raster dataset inputs. There must be a spatial reference attached to the raster datasets for the tool to run.

This tool has been deprecated. For more information, see An overview of the Samples toolbox.



WorkspaceToNewRasterCatalog_samples (input_workspace, output_location, raster_catalog_name, {configuration_keyword}, {management_type})
ParameterExplanationData Type

The input workspace can be a directory, a personal geodatabase, file geodatabase, or an ArcSDE geodatabase.

Folder | Workspace

The output location is the geodatabase where the new raster catalog will be created.

Folder | Workspace

The name of the raster catalog to be created.


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.


Raster datasets within raster catalogs can be managed in two ways: managed or unmanaged (by the geodatabase).

  • MANAGEDWith a managed raster catalog, the raster datasets inside the raster catalog will be physically stored within the geodatabase. When a row (or raster) is deleted from the catalog, it is deleted from the geodatabase
  • UNMANAGEDWith an unmanaged raster catalog, the raster catalog only contains links or pointers connecting a row to a raster dataset stored outside the geodatabase. All raster datasets loaded into an unmanaged raster catalog must be a file on disk.

Code Sample

import arcgisscripting
gp = arcgisscripting.create()
gp.WorkspaceToNewRasterCatalog_samples("D:\\temp\\tempws", "Database Connections\\raster.sde", "wrksp_to_new_rc", "#", "Managed")


This tool does not use any geoprocessing environments

Licensing Information

ArcView: Yes
ArcEditor: Yes
ArcInfo: Yes

Published 6/7/2010