This document is archived and information here might be outdated.  Recommended version.


IGeneralizeOp.Resample Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (SpatialAnalyst)  

IGeneralizeOp.Resample Method

Resamples the raster to a new cell size.

[Visual Basic .NET]
Public Function Resample ( _
    ByVal Raster As IGeoDataset, _
    ByVal newCellSize As Double, _
    ByVal resampleType As esriGeoAnalysisResampleEnum _
) As IGeoDataset
[C#]
public IGeoDataset Resample (
    IGeoDataset Raster,
    double newCellSize,
    esriGeoAnalysisResampleEnum resampleType
);
[C++]
HRESULT Resample(
  IGeoDataset* Raster,
  double newCellSize,
  esriGeoAnalysisResampleEnum resampleType,
  IGeoDataset** Resample
);
[C++]

Parameters Raster [in]
Raster is a parameter of type IGeoDataset newCellSize [in] newCellSize is a parameter of type double resampleType [in]
resampleType is a parameter of type esriGeoAnalysisResampleEnum Resample [out, retval]
Resample is a parameter of type IGeoDataset

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Spatial Analyst Extension.

Remarks

raster

an input Raster, RasterDataset, RasterBand, or RasterDescriptor whose cells define the zone values to be regrouped

newCellSize

ouput cellsize.  The default is the current environment setting.

ResampleType

An esriGeoAnalysisResampleEnum specifing the resampling algorithm to be used when sampling a Raster

See 'How it works' for a full description of the resampling methods.

esriGeoAnalysisResampleBilinear bilinear interpolation

esriGeoAnalysisResampleCubic cubic convolution

esriGeoAnalysisResampleNearest nearest neighbor assignment

 

See Also

IGeneralizeOp Interface