Project the input raster to the projection of the reference dataset
Parameters
| Expression | Explanation |
|---|---|
| Function Name | ProjectRaster |
| <input raster> | A String representing the input raster dataset. |
| <output raster> | A String - the full name of the output raster. |
| <reference dataset> | A String representing the reference dataset - feature dataset, raster or TIN. |
ETSPath used in the table below is the full path to ETSRun.exe (E.G. "C:\Program Files\ETSpatial Techniques\ETSurface\ETSRun.exe")
| Language | Syntax |
|---|---|
| Python | subprocess.call([ETSPath, "ProjectRaster", "input raster", "output raster", "reference dataset"]) |
| .NET using ETSRun.exe | StartInfo.FileName = ETSPath StartInfo.Arguments = "ProjectRaster" "input raster" "output raster" "reference dataset" |
| .NET using ETSOutX.dll | ProjectRaster(input raster, output raster, reference dataset) |
| ArcPy | arcpy.ProjectRaster("input raster", "output raster", "reference dataset") |
Notes:
<> - required parameter
{} - optional parameter
The argument separator for StartInfo.Arguments is space. If a string might contain a space, you need to double quote it.