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


IConditionalOp.Pick Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (SpatialAnalyst)  

IConditionalOp.Pick Method

Using the values of 'valueRaster', determines which raster in 'collectionofRasters' will be used for the output values.

[Visual Basic .NET]
Public Function Pick ( _
    ByVal valueRaster As IGeoDataset, _
    ByVal collectionOfRasters As IGeoDataset _
) As IGeoDataset
[C#]
public IGeoDataset Pick (
    IGeoDataset valueRaster,
    IGeoDataset collectionOfRasters
);
[C++]
HRESULT Pick(
  IGeoDataset* valueRaster,
  IGeoDataset* collectionOfRasters
);
[C++]

Parameters valueRaster [in]
valueRaster is a parameter of type IGeoDataset* collectionOfRasters [in]
collectionOfRasters is a parameter of type IGeoDataset*

Product Availability

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

Remarks

valueRaster an input Raster, RasterDataset, RasterBand, or RasterDescriptor defining the expression position that will be executed
collectionOfRasters name of a multiband Raster

If the value in the input valueRaster equals '1', then the first Raster in the collectionOfRasters will be used to compute the value for the output Raster. If the value in the input valueRaster equals '2', then the second Raster in the collectionOfRasters will be used to compute the value for the output Raster; if the value on the input valueRaster equals 'n', the expression in the 'nth' position in the collectionOrRasters will be used.

 

See Also

IConditionalOp Interface