laptop and a wrench

漏洞

When a locator is copied to SDE, user should be given an opportunity to select destination Config Keyword.

上次发布: August 25, 2014 No Product Found
漏洞 ID 编号 NIM004383
已提交September 26, 2006
上次修改时间June 5, 2024
适用范围No Product Found
找到的版本9.2
状态Will Not Be Addressed

附加信息

We apologize that we were unable to address this issue within the current product support cycle. If the issue continues to affect your work in a supported release, please contact Technical Support.

解决办法

Use the following VBA script to change the config keyword of the locator.Private Sub CopyLocator() CopyLocatorToSDEWorkspace "<a href="file:c:/MyLocators" target="_blank">c:\MyLocators</a>", "MyLocator1", "myconn.sde", "MyKeyword"End SubPrivate Sub CopyLocatorToSDEWorkspace(localWksDir As String, locatorName As String, sdeConnFile As String, configKeyword as String) Dim locMgr As ILocatorManager2 Set locMgr = New LocatorManager ' get the full name of the ArcSDE connection file Dim fullConnFileName As String fullConnFileName = Environ("USERPROFILE") + "\Application Data\ESRI\ArcCatalog\" + sdeConnFile ' open ArcSde connection Dim sdeLocWks As ILocatorWorkspace Set sdeLocWks = locMgr.GetLocatorWorkspaceFromPath(fullConnFileName) ' get locator from a local folder Dim localLocWks As ILocatorWorkspace Set localLocWks = locMgr.GetLocatorWorkspaceFromPath(localWksDir) Dim loc As ILocator Set loc = localLocWks.GetLocator(locatorName) ' copy the locator to ArcSDE workspace sdeLocWks.AddLocator locatorName, loc, configKeyword, NothingEnd Sub

重现步骤

漏洞 ID: NIM004383

软件:

  • No Product Found

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项