The IConditionalOp.SetNull() method returns a COM error when using grayscale and binary raster in ArcObjects 10.6.1 add-in.
最後に公開された状態: September 26, 2019ArcObjects SDK
不具合 ID 番号
BUG-000120354
送信されました
February 26, 2019
最終更新日
June 5, 2024
適用対象
ArcObjects SDK
見つかったバージョン
10.6.1
ステータス
Will Not Be Addressed
開発チームは、この問題またはリクエストを検討した結果、これに対処しないことに決定しました。 問題の「参考情報」セクションに、さらに詳細な説明が示されていることがあります。
参考情報
In ArcGIS SDK, certain changes had been made in Spatial Analyst extension. It is highly recommended that users to update their code accordingly.
Detailed information can be found here: https://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#DataProcessingInSpatialAnalysisOperations.htm
An alternative way is to using geoprocessing to work with add-ins, here is more information on this topic:
https://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#RunToolsInsideAnAdd-In.htm
対処法
Use these lines of code:With error:pConditionalOp.SetNull(pLogicalOp.BooleanNot(pLogicalOp.IsNull((IGeoDataset)pRasterDataset)) as IGeoDataset, (IGeoDataset)_pDEM);No error:pConditionalOp.SetNull(pMathOp.Float(pLogicalOp.BooleanNot(pLogicalOp.IsNull((IGeoDataset)pRasterDataset))) as IGeoDataset,