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


ITransformationOp.Resample Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > GeoAnalyst > ESRI.ArcGIS.GeoAnalyst > Interfaces > IT > ITransformationOp Interface > ITransformationOp.Resample Method
ArcGIS Developer Help

ITransformationOp.Resample Method

Resamples raster to a new cell size.

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

GeoDataset 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.

Remarks

GeoDataSet

an input Raster, RasterDataset, RasterBand, or RasterDescriptor

newCellsize

The cell size the output raster will be created at.

This will be the value in the Environment if it is explicitly set. Otherwise, it is the shortest of the width or the height of the extent of in_point_features, in the input spatial reference, divided by 250.

resampleType

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

can be of type:

esriGeoAnalysisResampleBilinear - bilinear interpolation. This is Default.

esriGeoAnalysisResampleCubic - cubic convolution.

esriGeoAnalysisResampleNearest - nearest neighbor assignment.

See Also

ITransformationOp Interface