ToolBox Implementation | .NET Implementation |
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:
ETS_GPResampleRaster c:\test\r1.img c:\test\esampled1.img15 # # will resample "r1.img" with the same extent and a new cell size of 15.
ETS_GPResampleRaster c:\test\r1.img c:\test\resampled1.img 15 # "0, 0, 500, 250" will resample raster "r1.img" with envelope with X Min = 0, Y Min = 0, X Max = 500 and Y Max = 250 and new cell size of 15
Scripting syntax
ETS_GPResampleRaster (Input Raster, Out Raster, Cell Size, Extent from Existing, Extent)
See the explanations above:
<> - required parameter
{} - optional parameter
ResampleRaster (inRasterDataset As IRasterDataset2, sOutRaster As String, dCellsize As Double, Optional pExtent As IEnvelope = Nothing) As IRasterDataset2
Copyright © Ianko Tchoukanski |