Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > Data Management toolbox > Raster toolset > Tools

Workspace To Raster Catalog (Data Management)

Release 9.2
Last modified November 29, 2010
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Tools"


Related Topics

Loads all the raster datasets that are stored within the same workspace into an existing raster catalog.


Usage tips

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.

  • NONE — Does not include subdirectories. This is the default.
  • INCLUDE_SUBDIRECTORIES — Includes all the raster datasets within the subdirectories when loading.

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
Data types for geoprocessing tool parameters


Command line example

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.

  • NONE — Does not include subdirectories. This is the default.
  • INCLUDE_SUBDIRECTORIES — Includes all the raster datasets within the subdirectories when loading.

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

Data types for geoprocessing tool parameters


Script example

# 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')

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.