ArcObjects Library Reference (GeoAnalyst)  

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
public IGeoDataset Resample (
    IGeoDataset GeoDataset,
    double newCellsize,
    esriGeoAnalysisResampleEnum resampleType
HRESULT Resample(
  IGeoDataset* GeoDataset,
  double newCellsize,
  esriGeoAnalysisResampleEnum resampleType,
  IGeoDataset** outGeoDataset


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

outGeoDataset [out, retval]

  outGeoDataset is a parameter of type IGeoDataset

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.



an input Raster, RasterDataset, RasterBand, or RasterDescriptor


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.


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