laptop and a wrench

漏洞

Unable to copy/save a file system based raster with a maximum pixel value of either two or three to a file geodatabase.

上次发布: November 29, 2018 ArcGIS for Desktop
漏洞 ID 编号 BUG-000117326
已提交October 9, 2018
上次修改时间June 5, 2024
适用范围ArcGIS for Desktop
找到的版本10.6.1
状态Non-Reproducible

附加信息

Fixed in a later version of ArcGIS desktop.

解决办法

Run the script through a Python 3.6.5 IDLE (ArcGIS Pro 2.2.3) environment

It is possible to get two and three constant value rasters when running the analysis through a Python script where the 'env.workspace' would have to be set to a file geodatabase.

Like the following format:

import arcpy

from arcpy import env

from arcpy.sa import *

env.workspace = "C:\Caseuser\Andrea\RasterConstanValue_Test2\Test1.gdb"

pixel_value = 2

outConstRaster = CreateConstantRaster(2)

outConstRaster.save("C:\Caseuser\Andrea\RasterConstanValue_Test2\Test1.gdb\Test{}".format(pixel_value)")

重现步骤

漏洞 ID: BUG-000117326

软件:

  • ArcGIS for Desktop

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项