laptop and a wrench

Bug

The IConditionalOp.SetNull() method returns a COM error when using grayscale and binary raster in ArcObjects 10.6.1 add-in.

Zuletzt veröffentlicht: September 26, 2019 ArcObjects SDK
Bug-ID-Nummer BUG-000120354
EingereichtFebruary 26, 2019
Zuletzt geändertJune 5, 2024
Gilt fürArcObjects SDK
Gefunden in Version10.6.1
StatusWill Not Be Addressed

Zusätzliche Informationen

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

Workaround

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,

Schritte zur Reproduzierung

Bug-ID: BUG-000120354

Software:

  • ArcObjects SDK

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln