laptop and a wrench

Error

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

Última publicación: September 26, 2019 ArcObjects SDK
Número de ID del error BUG-000120354
EnviadoFebruary 26, 2019
Última modificaciónJune 5, 2024
Relacionado conArcObjects SDK
Versión encontrada10.6.1
EstadoWill Not Be Addressed

Información adicional

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

Solución alternativa

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,

Pasos para reproducir

ID del error: BUG-000120354

Software:

  • ArcObjects SDK

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga