This document is archived and information here might be outdated. Recommended version. |
Performs a conditional if/else evaluation.
[Visual Basic .NET] Public Function Con ( _ ByVal ConditionalRaster As IGeoDataset, _ ByVal TrueRaster As IGeoDataset, _ [ByRef FalseRaster As Object] _ ) As IGeoDataset
[C#] public IGeoDataset Con ( IGeoDataset ConditionalRaster, IGeoDataset TrueRaster, ref object FalseRaster );
[C++]
HRESULT Con(
IGeoDataset* ConditionalRaster,
IGeoDataset* TrueRaster,
Variant* FalseRaster
);
[C++] Parameters ConditionalRaster [in]
ConditionalRaster is a parameter of type IGeoDataset* TrueRaster [in]
TrueRaster is a parameter of type IGeoDataset* FalseRaster [in, optional]
FalseRaster is a parameter of type VARIANT*
conditionalRaster | an input Raster, RasterDataset, RasterBand, or RasterDescriptor. The values should be comprised of “1â€â€™s and “0â€â€™s with a “1†representing True condition and a “0†a False condition |
trueRaster | the value that will be used as the output value if the conditionalRaster is True |
[falseRaster] | the value that will be used as the output value if the conditionalRaster is False. If no falseRaster is specified, all False values (“0â€â€™s) in the conditionalRaster will be assigned NoData |