TomFlahive

Change Resample Method on a Raster

Discussion created by TomFlahive on Feb 8, 2012
I have some working code where I create a raster from a raster dataset, using the following code:

Dim pRLayer As IRasterLayer
pRLayer = New RasterLayer
pRLayer.Name = "Logo"
pRLayer.CreateFromDataset(pRDataset)


This code works fine.  But I would now like to change the resampling method to BilinearInterpolation.  I tried the following, but this didn't work

pRLayer.Raster.ResampleMethod = rstResamplingTypes.RSP_BilinearInterpolation


Does anyone know how to change the resampling method given a raster layer?

Thanks.

Outcomes