Running a Create Geodatabase tool creates a geoprocessing package which includes everything in the location of the Geodatabase, even though the files or folders have nothing to do with the process.
上次发布: March 29, 2018ArcGIS Pro
漏洞 ID 编号
BUG-000112628
已提交
March 22, 2018
上次修改时间
June 5, 2024
适用范围
ArcGIS Pro
找到的版本
2.1.2
操作系统
Windows OS
操作系统版本
N/A
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
This is expected behavior which is documented here: http://pro.arcgis.com/en/pro-app/help/analysis/geoprocessing/share-analysis/packaging-python-scripts.htm
As part of the sharing process, consolidation occurs and the following applies:
"When folders are consolidated, all files and geodatasets within the folder are copied; no subfolders are copied. Some geodatasets, such as file geodatabases, rasters, and TINS are technically folders, but they are also geodatasets, so they will be copied. If the folder contains layer files, all data referenced by the layer file is also consolidated so that any arcpy.mp routines in the script can gain access to the referenced data.
Tip:
Due to the way folders are consolidated, you should avoid cluttering the folder with large datasets and files that will never be used by your tool; it unnecessarily increases the size of the data to be packaged."
The workaround mentioned of using an empty folder for the location of the created geodatabase is the recommended course of action to avoid unintended copying of extraneous files.
解决办法
Create an empty folder for the location of the created geodatabase.