ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Workspace To Raster Catalog

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

Loads all the raster datasets stored in the same workspace into an existing raster catalog.

Usage

  • 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, use the Project on-the-fly parameter.

  • When loading raster datasets into a raster catalog with this tool, the spatial grid index is automatically calculated upon completion of the tool.

    Learn about geodatabase items—Spatial indexes and grid size

Syntax

WorkspaceToRasterCatalog_management (in_workspace, in_raster_catalog, {include_subdirectories}, {project})
ParameterExplanationData 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
include_subdirectories
(Optional)

Specify whether to include subdirectories.

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

  • NONE —All raster datasets are loaded into 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 into the raster catalog.
Boolean

Code sample

WorkspaceToRasterCatalog example (Python window)

This is a Python sample for the WorkspaceToRaster Catalog tool.

import arcpy
arcpy.WorkspaceToRasterCatalog_management("c:/data", "c:/RC/WS2RC.gdb/emptyRC",
                                          "INCLUDE_SUBDIRECTORIES",
                                          "PROJECT_ONFLY")
WorkspaceToRasterCatalog example 2 (stand-alone script)

This is a Python script sample for the WorkspaceToRaster Catalog tool.

##======================
##Workspace To Raster Catalog
##Usage: WorkspaceToRasterCatalog_management in_workspace in_raster_catalog {NONE | INCLUDE_SUBDIRECTORIES} {NONE | PROJECT_ONFLY}

import arcpy
arcpy.env.workspace = r"C:\PrjWorkspace"

##Load Workspace to Unmanaged FGDB Raster Catalog
arcpy.WorkspaceToRasterCatalog_management("data", "WS2RC.gdb\\Unmanaged", "INCLUDE_SUBDIRECTORIES", "PROJECT_ONFLY")

Environments

  • Compression
  • Current Workspace
  • Pyramid
  • Raster Statistics
  • Tile Size

Licensing information

  • ArcGIS for Desktop Basic: Yes
  • ArcGIS for Desktop Standard: Yes
  • ArcGIS for Desktop Advanced: Yes

Related topics

  • An overview of the Raster toolset
  • Environment settings for raster data

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal