栅格计算叠加报错


TIM截图20190818184814.png


TIM截图20190818184754.png

消息
Con(Raster(r"e9y1") == 1 | Raster(r"e9y2") == 1,1,5)
ERROR 000539: Error running expression: rcexec()
Traceback (most recent call last):
File "<expression>", line 1, in <module>
File "<string>", line 5, in rcexec
ValueError: The truth value of a raster is ambiguous. Invalid use of raster with Boolean operator or function. Check the use of parentheses where applicable.

Con(Raster(r"e9y1") == 1 | Raster(r"e9y2") == 1,1,5)
ERROR 000539: Error running expression: rcexec()
Traceback (most recent call last):
File "<expression>", line 1, in <module>
File "<string>", line 5, in rcexec
ValueError: The truth value of a raster is ambiguous. Invalid use of raster with Boolean operator or function. Check the use of parentheses where applicable.

执行(RasterCalculator)失败。
失败 在 Sun Aug 18 18:44:14 2019 (经历的时间: 0.79 秒)
已邀请:

张佳期

赞同来自:

Con(Raster(r"e9y1") == 1 | Raster(r"e9y2") == 1,1,5)
 
上述表达式是想实现什么需求呢?
https://resources.arcgis.com/z ... 00539

要回复问题请先登录注册