The shapefile data source path does not contain the *.shp extension for imported map documents.
上次发布: August 15, 2017ArcGIS Pro
漏洞 ID 编号
BUG-000105847
已提交
June 15, 2017
上次修改时间
June 5, 2024
适用范围
ArcGIS Pro
找到的版本
1.4.1
操作系统
Windows OS
操作系统版本
7.0 64 Bit
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
There is a minor user interface (UI) issue to be addressed separately. When the .mxd is converted, the file name's extension in the dialog box is not seen, whereas it can be seen when a new map layer is created from a shapefile dataset in ArcGIS Pro. However, this difference only exists in the string when viewing in the Properties dialog box.
Behind the scenes in the data connection that is used by the map layer to access the data source, the data connection for both map layers is exactly the same regardless of what string is shown in the dialog box. As such, this has no effect on the SDK and the ability to change or access the layer's data source.
Here is a code snippet from the ArcGIS Pro SDK that shows how to access the name of the feature class that is the data source of a feature layer:
var flyr = MapView.Active.Map.GetLayersAsFlattenedList().OfType().FirstOrDefault();
QueuedTask.Run(() => {
var fcName = flyr.GetFeatureClass().GetName();
});