laptop and a wrench

漏洞

The Python script "arcpy.BuildRasterAttributeTable_management" does not work with intermediate rasters.

上次发布: June 7, 2019 ArcGIS for Desktop
漏洞 ID 编号 BUG-000122177
已提交May 6, 2019
上次修改时间June 5, 2024
适用范围ArcGIS for Desktop
找到的版本10.6.1
状态Known Limit

附加信息

The input raster is the result of the Int function. The Int function generates a function raster dataset, not in memory raster dataset. The Python script "arcpy.BuildRasterAttributeTable_managementI()" does not take function raster dataset as input. The function raster dataset needs to save to a physical raster dataset or a in memory raster dataset to be used in the Python script "arcpy.BuildRasterAttributeTable_managementI()".

解决办法

To create an in_memory copy of the raster :

int_rast.save("in_memory/tempfile.tif")

 

or

 

print(int_rast)

arcpy.BuildRasterAttributeTable_management(int_rast)

As well as providing printed output to the console, the print statement has the effect of creating a TIF file in the subject workspace.

 

 

Attached are example workarounds in ArcMap 10.6.1 (python 2.x)and ArcGIS Pro (python 3.x).

重现步骤

漏洞 ID: BUG-000122177

软件:

  • ArcGIS for Desktop

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项