Everyone. I need to use union of every three sequence raster in database, so I use ILogicalOp.BooleanAnd. Weirdly I receive {"Exception from HRESULT: 0x80041098"} in third time of for loop.
Here is part of my code: error appear on temp=… In the following line when i==2.
ILogicalOp RMath;
for (int i = 0; i < inputRas.Length-2; i=i+1)
{
temp = RMath.BooleanAnd(inputRas[i], inputRas[i+1]);
rasOut = RMath.BooleanAnd(temp, inputRas[i + 2]);
}
Any comment will be appreciated.