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

Make Raster Catalog Layer

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

Summary

Creates a raster catalog layer from an input raster catalog. The layer that is created by the tool is temporary and will not persist after the session ends unless the layer is saved to disk or the map document is saved.

Usage

  • To make your layer permanent, right-click the layer in the ArcMap table of contents and click Save As Layer File, or use the Save To Layer File tool.

Syntax

MakeRasterCatalogLayer_management (in_raster_catalog, layer_name, {where_clause}, {workspace}, {field_info})
ParameterExplanationData Type
in_raster_catalog

The raster catalog containing one or more raster catalog items (raster datasets).

Raster Catalog Layer
layer_name

Name of the temporary raster catalog layer.

Raster Catalog Layer
where_clause
(Optional)

An SQL expression used to select a subset of raster catalog items.

The syntax for the expression differs slightly depending on the data source. For example, if you're querying file or ArcSDE geodatabases, enclose field names in double quotes:

"MY_FIELD"

If you're querying personal geodatabases, enclose fields in square brackets:

[MY_FIELD].

SQL Expression
workspace
(Optional)

The input workspace used to validate the field names. If the input is from a file or personal geodatabase and the output workspace is an ArcSDE geodatabase, the field names may be truncated, since some database fields can only have names with ten characters or less. The new names may be reviewed and altered using the Field Info parameter.

Workspace
field_info
(Optional)

Specifies which fields from the input table to rename and make visible in the output table view.

Field Info

Code sample

MakeRasterCatalogLayer example 1 (Python window)

This is a Python sample for MakeRasterCatalogLayer.

import arcpy
arcpy.MakeRasterCatalogLayer_management("c:/data/fgdb.gdb/catalog", "catlayer",\
                                        "OBJECTID<3", "SDE94.sde", "#")
MakeRasterCatalogLayer example 2 (stand-alone script)

This is a Python script sample for MakeRasterCatalogLayer.

##====================================
##Make Raster Catalog Layer
##Usage: MakeRasterCatalogLayer_management in_raster_catalog layer_name {where_clause} 
##                                         {workspace} {field_info}
    
import arcpy

arcpy.env.workspace = r"C:/Workspace"

##Create raster catalog layer from unmanaged raster catalog
##Use SDE workspace to validate the field
arcpy.MakeRasterCatalogLayer_management("fgdb.gdb/catalog", "catlayer", "OBJECTID<3",\
                                        "SDE94.sde", "#")

Environments

  • Current Workspace
  • Scratch Workspace

Licensing information

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

Related topics

  • An overview of the Layers and Table Views toolset
  • Using layers and table views
  • Working with layers and table views
  • SQL reference for query expressions used in ArcGIS

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