Resample Raster

ToolBox Implementation .NET Implementation
Alters a raster by changing the cell size and/or extent. The extent can be imported from an existing feature class or raster.

Inputs:

Outputs:

Notes:

ToolBox implementation

Command line syntax

ETS_GPResampleRaster <Input Raster> <Out Raster><Cell Size> {Extent from Existing} {Extent}

Parameters

Expression Explanation
<Input Raster> Raster layer or raster dataset
<Out Raster> A String - the full name of the output raster (A raster with the same full name should not exist). The output raster type depends on the extension of the output file(see Notes above)
<Cell Size> A Double representing the cell size
{Extent from Existing} A string representing the full path to an existing dataset. The extent of the output raster will have the extent of this dataset
{Extent} A String representing the extent of the output raster. Example
"0, 0, 500, 250"

Examples:

Scripting syntax

ETS_GPResampleRaster (Input Raster, Out Raster, Cell Size, Extent from Existing, Extent)

See the explanations above:
<> - required parameter
{} - optional parameter

p>.NET implementation
(Go to TOP)

ResampleRaster (inRasterDataset As IRasterDataset2, sOutRaster As String, dCellsize As Double, Optional pExtent As IEnvelope = Nothing) As IRasterDataset2

Copyright © Ianko Tchoukanski