|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IConditionalOp
Provides access to members that control the conditional operations.
Method Summary | |
---|---|
IGeoDataset |
con(IGeoDataset conditionalRaster,
IGeoDataset trueRaster,
Object falseRaster)
Performs a conditional if/else evaluation. |
IGeoDataset |
pick(IGeoDataset valueRaster,
IGeoDataset collectionOfRasters)
Using the values of 'valueRaster', determines which raster in 'collectionofRasters' will be used for the output values. |
IGeoDataset |
setNull(IGeoDataset conditionalRaster,
IGeoDataset falseRaster)
Returns NoData if the evaluation of the input 'conditionalRaster' is true, or returns the value specified by the 'falseRaster' if it is false, on a cell by cell basis. |
Method Detail |
---|
IGeoDataset con(IGeoDataset conditionalRaster, IGeoDataset trueRaster, Object falseRaster) throws IOException, AutomationException
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 |
conditionalRaster
- A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)trueRaster
- A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)falseRaster
- A Variant (in, optional, pass null if not required)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGeoDataset setNull(IGeoDataset conditionalRaster, IGeoDataset falseRaster) throws IOException, AutomationException
conditionRaster | a conditional input Raster, RasterDataset, RasterBand, or RasterDescriptor to be tested for Boolean 'True' or 'False' |
falseRaster | defines what the output value will be
if the evaluation of the condition is False
If no argument is specified, the output will receive NoData. Unless the desired result is a grid containing all NoData, it is advisable to specify an output for this argument. |
conditionalRaster
- A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)falseRaster
- A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGeoDataset pick(IGeoDataset valueRaster, IGeoDataset collectionOfRasters) throws IOException, AutomationException
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. |
valueRaster
- A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)collectionOfRasters
- A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |