漏洞
漏洞 ID 编号 | BUG-000172901 |
---|---|
已提交 | December 6, 2024 |
上次修改时间 | April 9, 2025 |
适用范围 | ArcGIS Pro |
找到的版本 | 3.2.2 |
操作系统 | Windows OS |
操作系统版本 | 10.0 64 Bit |
修正版本 | 3.5 |
状态 | Fixed |
The workaround is to explicitly refresh the catalog view with a Project.Current.AddItem method. Here is an example: protected void AddLocatorsToTheProjectAsync(string dir_path) { var loc_path = System.IO.Path.Combine( dir_path, "Atlanta"); var loc_paths = new List(); var loc = $"{loc_path}.loc"; QueuedTask.Run(async () => { var i = 1; //Add the locators while (System.IO.File.Exists(loc)) { var loc_item = ItemFactory.Instance.Create(loc) as IProjectItem; if (Project.Current.AddItem(loc_item)) { loc_paths.Add(loc); } loc = $"{loc_path}{i++}.loc"; } //Retrieve the locators var locators = await MapView.Active.LocatorManager.GetLocatorInformationAsync(); foreach (var path in loc_paths) { var locator = locators.FirstOrDefault( loc => string.Compare(loc.ProviderPath, path, true) == 0); if (locator != null) { System.Diagnostics.Debug.WriteLine( $"Locator {locator.ProviderName}, {locator.ProviderPath} added"); } else { System.Diagnostics.Debug.WriteLine($"Locator {path} not added"); } } }); }
漏洞 ID: BUG-000172901
软件:
获取来自 ArcGIS 专家的帮助
下载 Esri 支持应用程序