Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > Data Management toolbox > Layers and Table Views toolset > Tools

Make Raster Layer (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

Makes a temporary raster dataset layer that will be available to select as a variable while working in the same ArcMap or ArcCatalog session.


Usage tips

Command line syntax
An overview of the Command Line window
MakeRasterLayer_management <in_raster> <out_rasterlayer> {where_clause} {envelope}

Parameter Explanation Data Type
<in_raster>

The path and name of the input raster dataset.

Composite Geodataset
<out_rasterlayer>

The name of the temporary output raster dataset.

Raster Layer
{where_clause}

A query statement using the fields and values of the raster dataset.

To add this variable, press F8 or right-click and click Insert Variable.

SQL Expression
{envelope}

Using the min x, min y, max x, or max y, you can specify the extents of the raster layer.

To add this variable, press F8 or right-click and click Insert Variable.

Envelope
Data types for geoprocessing tool parameters


Command line example

MakeRasterLayer c:/data/seattle.img Seattle_Image # envelope1

Scripting syntax
About getting started with writing geoprocessing scripts
MakeRasterLayer_management (in_raster, out_rasterlayer, where_clause, envelope)

Parameter Explanation Data Type
in_raster (Required)

The path and name of the input raster dataset.

Composite Geodataset
out_rasterlayer (Required)

The name of the temporary output raster dataset.

Raster Layer
where_clause (Optional)

A query statement using the fields and values of the raster dataset.

To add this variable, press F8 or right-click and click Insert Variable.

SQL Expression
envelope (Optional)

Using the min x, min y, max x, or max y, you can specify the extents of the raster layer.

To add this variable, press F8 or right-click and click Insert Variable.

Envelope

Data types for geoprocessing tool parameters


Script example

# MakeRasterLayer_sample.py
# Description: makes a raster layer.
# Requirements: None
# Author: ESRI
# Date: 12/01/03

# Create the Geoprocessor object
import arcgisscripting
gp = arcgisscripting.create()

try:
    # Set local variables
    InRaster = "C:/data/seattle.img"
    OutLyr = "seattle_lyr"

    # Process: MakeRasterLayer_management
    gp.MakeRasterLayer_management(InRaster,OutLyr,"#","549720.051000 5272763.993000 549970.051000 5273317.993000")

except:
    # Print error message if an error occurs
    Print gp.GetMessages()

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