漏洞 ID 编号 |
BUG-000172250 |
已提交 | November 14, 2024 |
上次修改时间 | January 5, 2025 |
适用范围 | ArcGIS Online |
找到的版本 | Nov 2024 |
操作系统 | N/A |
操作系统版本 | N/A |
状态 | As Designed
经开发团队审核,已确定此行为符合设计。 有关详细信息,请参阅“其他信息”部分。
|
附加信息
Files created during notebook web tool runs are not stored in the workspace directory (/arcgis/home). Instead, specify a relative path when writing the file. Here is an example of how a variable named "output_csv" configured as a file output parameter should be created:
csv_path = f"test.csv"
f = open(csv_path, mode="a", encoding="utf-8")
f.write("test1, test2, test3, test4")
f.close()
output_csv = {"url": csv_path}
With the configurations above, the web tool should output a CSV file that can be downloaded from the analysis result in Map Viewer. To retain a file output from notebook web tools, add logic in the notebook code to add the file to the ArcGIS content as an item.
解决办法
Run straight from Notebook.
重现步骤