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


IGeneralizeOp.Resample Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > SpatialAnalyst > ESRI.ArcGIS.SpatialAnalyst > Interfaces > IG > IGeneralizeOp Interface > IGeneralizeOp.Resample Method
ArcGIS Developer Help

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
);
[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

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