Make Raster Layer (Data Management) |
|
Release 9.2
Last modified November 29, 2010 |
![]() ![]() ![]() Print all topics in : "Tools" |
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
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.
When you are entering commands and their variables into the geoprocessing dialog box and you come to a variable you do not know how to enter, press F8.
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 |
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 |
# 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()