Workspace To New Raster Catalog (Samples)

Summary

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.

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

Usage

Syntax

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

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

Folder | Workspace
output_location

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

Folder | Workspace
raster_catalog_name

The name of the raster catalog to be created.

String
configuration_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
management_type
(Optional)

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.
String

Code Sample

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

Environments

This tool does not use any geoprocessing environments

Licensing Information

ArcView: Yes
ArcEditor: Yes
ArcInfo: Yes

Published 6/7/2010