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


IExtractionOp2.Sample Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > SpatialAnalyst > ESRI.ArcGIS.SpatialAnalyst > Interfaces > IE > IExtractionOp2 Interface > IExtractionOp2.Sample Method
ArcGIS Developer Help

IExtractionOp2.Sample Method

[Visual Basic .NET]
Public Function Sample ( _
    ByVal pSource As IGeoDataset, _
    ByVal pCollectionOfRasters As IGeoDataset, _
    ByVal eResampleType As esriGeoAnalysisResampleEnum _
) As ITable
[C#]
public ITable Sample (
    IGeoDataset pSource,
    IGeoDataset pCollectionOfRasters,
    esriGeoAnalysisResampleEnum eResampleType
);
[C++]
HRESULT Sample(
  IGeoDataset* pSource,
  IGeoDataset* pCollectionOfRasters,
  esriGeoAnalysisResampleEnum eResampleType
);
[C++]
Parameters
pSource [in]

pSource is a parameter of type IGeoDataset* pCollectionOfRasters [in]
pCollectionOfRasters is a parameter of type IGeoDataset* eResampleType [in]
eResampleType is a parameter of type esriGeoAnalysisResampleEnum

Product Availability

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

Remarks

locationDataset

an input Raster, RasterDataset, RasterBand, RasterDescriptor, FeatureClass or FeatureClassDescriptor which defines the cells to sample

Cells in the locationDataSet with valid values will be sampled.

collectionOfRasters

a multiband input Raster, RasterDataset, RasterBand, or RasterDescriptor whose values will be sampled based upon the locationDataset

resampleType

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

resample enumeration types are,

esriGeoAnalysisBilinear - bilinear interpolation

esriGeoAnalysisCubic - cubic convolution

esriGeoAnalysisNearest - nearest neighbor assignment

 

See Also

IExtractionOp2 Interface