laptop and a wrench

漏洞

Can't geocode addresses on a feature after its address range attributes have been edited.

上次发布: August 25, 2014 No Product Found
漏洞 ID 编号 NIM002438
已提交May 9, 2006
上次修改时间April 2, 2025
适用范围No Product Found
找到的版本9.1
状态Will Not Be Addressed

附加信息

No Public Explanation

解决办法

Workarounds:1. Close and reopen ArcMap.2. Use a local locator instead of an SDE locator.3. Use the code belwo to force the server to use a new instance of a locator object. The new instance will work with the correct state ID.------Option Base 0Private Function GetLocatorExtension() As ILocatorExtension Dim pApplication As IApplication Dim pUID As New esriSystem.UID Set pApplication = ThisDocument.Parent pUID.Value = "esriLocationUI.LocatorExtension" Set GetLocatorExtension = pApplication.FindExtensionByCLSID(pUID)End FunctionPrivate Sub ForceLocatorRefresh(loc As ILocator) Dim locImpl As ILocatorImpl Set locImpl = loc Dim locPS As IPropertySet Set locPS = locImpl.Properties ' now a hack to prevent server side code from reusing the cached locator locPS.SetProperty "RD.ForceNewLocInst", CStr(Now) locImpl.Properties = locPSEnd SubPublic Sub RefreshSDELocators() Dim locExtension As ILocatorExtension Set locExtension = GetLocatorExtension Dim locInd As Long Dim address As IPropertySet Set address = New PropertySet For locInd = 0 To locExtension.LocatorCount("Address") - 1 Dim loc As ILocator Set loc = locExtension.Locator("Address", locInd) locExtension.RemoveLocator "Address", locInd ForceLocatorRefresh loc locExtension.AddLocator loc Next locIndEnd Sub===========================================================

重现步骤

漏洞 ID: NIM002438

软件:

  • No Product Found

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项