Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > Data Management toolbox > Projections and Transformations toolset > Raster tools

Project Raster (Data Management)

Release 9.3
Last modified March 8, 2012
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Raster tools"


Related Topics

NOTE: This topic was updated for 9.3.1.


Transforms the raster dataset from one projection to another

Learn more about how Project Raster works.


Usage tips

Command line syntax
An overview of the Command Line window
ProjectRaster_management <in_raster> <out_raster> <out_coor_system> {NEAREST | BILINEAR | CUBIC | MAJORITY} {cell_size} <geographic_transform> {Registration_Point} {in_coor_system}

Parameter Explanation Data Type
<in_raster>

The input raster dataset.

Composite Geodataset
<out_raster>

The output raster dataset to be created.

When storing the raster dataset in a file format, you need to specify the file extension: .bmp for BMP, .gif for GIF, .img for an ERDAS IMAGINE file, .jpg for JPEG, .jp2 for JPEG 2000, .png for PNG, .tif for TIFF, or no extension for GRID.

When storing a raster dataset in a geodatabase, no file extension should be added to the name of the raster dataset. A raster dataset stored in a geodatabase can be compressed; you can specify a compression type and compression quality.

Raster Dataset
<out_coor_system>

The coordinate system for the geometry column.

The default is the same as in the Spatial Reference Settings environment.

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

Spatial Reference
{NEAREST | BILINEAR | CUBIC | MAJORITY}

The resampling algorithm to be used. The default is NEAREST.

  • NEAREST — Nearest neighbor assignment
  • BILINEAR — Bilinear interpolation
  • CUBIC — Cubic convolution
  • MAJORITY — Majority resampling

The NEAREST and MAJORITY options are used for categorical data such as a land-use classification. The NEAREST option is the default since it is the quickest and also because it will not change the cell values. Do not use NEAREST or MAJORITY for continuous data such as elevation surfaces. The BILINEAR option and the CUBIC option are most appropriate for continuous data. It is not recommended that BILINEAR or CUBIC be used with categorical data because the cell values may be altered.

String
{cell_size}

The cell size for the output raster dataset. The default cell size is the cell size of the selected raster dataset.This tool will output a square cell size.

Analysis Cell Size
<geographic_transform>

The transformation method used between two geographic systems or datums.

The geographic transformation is optional when the input and output coordinate systems have the same datum. If the input and output datum are different, a geographic transformation needs to be specified.

Learn about geographic transformation methods.

For information on each supported geographic (datum) transformations, see the geographic_transformations.pdf located in <install location>\ArcGIS\Documentation.

String
{Registration_Point}

The x and y coordinates (in the output space) used for pixel alignment.

The registration point works similar to the concept of snap raster. Instead of snapping the output to an existing raster cell alignment, the registration point allows you to specify the origin point for anchoring the output cells. All output cells will be an interval of the cell size away from this point. This point does not have to be a corner coordinate or fall within the raster dataset.

The Snap Raster Environment Setting will take priority over Registration Point parameter. Therefore, if you want to set the Registration Point, make sure that Snap Raster is not set.

Point
{in_coor_system}

The coordinate system of the input raster dataset.

Coordinate System
Data types for geoprocessing tool parameters


Command line example

ProjectRaster c:\test_data\dams C:\test_data\dams_projected 'Coordinate Systems\Projected Coordinate Systems\Utm\Nad 1927\NAD 1927 UTM Zone 14N.prj'  BILINEAR 30 NAD_1927_To_NAD_1983_NADCON '100, 100'

Scripting syntax
About getting started with writing geoprocessing scripts
ProjectRaster_management (in_raster, out_raster, out_coor_system, resampling_type, cell_size, geographic_transform, Registration_Point, in_coor_system)

Parameter Explanation Data Type
in_raster (Required)

The input raster dataset.

Composite Geodataset
out_raster (Required)

The output raster dataset to be created.

When storing the raster dataset in a file format, you need to specify the file extension: .bmp for BMP, .gif for GIF, .img for an ERDAS IMAGINE file, .jpg for JPEG, .jp2 for JPEG 2000, .png for PNG, .tif for TIFF, or no extension for GRID.

When storing a raster dataset in a geodatabase, no file extension should be added to the name of the raster dataset. A raster dataset stored in a geodatabase can be compressed; you can specify a compression type and compression quality.

Raster Dataset
out_coor_system (Required)

The coordinate system for the geometry column.

The default is the same as in the Spatial Reference Settings environment.

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

Spatial Reference
resampling_type (Optional)

The resampling algorithm to be used. The default is NEAREST.

  • NEAREST — Nearest neighbor assignment
  • BILINEAR — Bilinear interpolation
  • CUBIC — Cubic convolution
  • MAJORITY — Majority resampling

The NEAREST and MAJORITY options are used for categorical data such as a land-use classification. The NEAREST option is the default since it is the quickest and also because it will not change the cell values. Do not use NEAREST or MAJORITY for continuous data such as elevation surfaces. The BILINEAR option and the CUBIC option are most appropriate for continuous data. It is not recommended that BILINEAR or CUBIC be used with categorical data because the cell values may be altered.

String
cell_size (Optional)

The cell size for the output raster dataset. The default cell size is the cell size of the selected raster dataset.This tool will output a square cell size.

Analysis Cell Size
geographic_transform (Required)

The transformation method used between two geographic systems or datums.

The geographic transformation is optional when the input and output coordinate systems have the same datum. If the input and output datum are different, a geographic transformation needs to be specified.

Learn about geographic transformation methods.

For information on each supported geographic (datum) transformations, see the geographic_transformations.pdf located in <install location>\ArcGIS\Documentation.

String
Registration_Point (Optional)

The x and y coordinates (in the output space) used for pixel alignment.

The registration point works similar to the concept of snap raster. Instead of snapping the output to an existing raster cell alignment, the registration point allows you to specify the origin point for anchoring the output cells. All output cells will be an interval of the cell size away from this point. This point does not have to be a corner coordinate or fall within the raster dataset.

The Snap Raster Environment Setting will take priority over Registration Point parameter. Therefore, if you want to set the Registration Point, make sure that Snap Raster is not set.

Point
in_coor_system (Optional)

The coordinate system of the input raster dataset.

Coordinate System

Data types for geoprocessing tool parameters


Script example

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

gp.workspace = "c:/Data"

# Set the spatial reference and registration variables
cs = "C:/ArcGIS/Coordinate Systems/Geographic Coordinate Systems/North America/North American Datum 1983.prj"
RegistrationPoint = '100 100'
gp.ProjectRaster_management("Redlands.tif", "Redlands_projected.tif", cs, "BILINEAR", 30, "NAD_1927_To_NAD_1983_NADCON", RegistrationPoint)

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