漏洞
漏洞 ID 编号 | BUG-000160654 |
---|---|
已提交 | August 15, 2023 |
上次修改时间 | June 5, 2024 |
适用范围 | ArcGIS Pro |
找到的版本 | 2.9 |
操作系统 | N/A |
操作系统版本 | N/A |
状态 | Will Not Be Addressed |
The Raster Calculator tool is not intended for use in Python. The Raster Calculator tool is used to perform Map Algebra using Python in the User Interface, ie ModelBuilder. Map Algebra in Python can be performed natively. Map Algebra does not need to be wrapped inside a geoprocessing tool like the Raster Calculator tool.
Perform Map Algebra like this:
from arcpy.sa import *
arcpy.env.mask ="C:\\temp\\BUG-000160654\\repro\\ManalData\\blkgrp.shp"
ras1 = arcpy.Raster('usgsdem')
ras2 = arcpy.Raster('gfchot')
myras = ras1*ras2
漏洞 ID: BUG-000160654
软件:
获取来自 ArcGIS 专家的帮助
下载 Esri 支持应用程序