Can't geocode addresses on a feature after its address range attributes have been edited.
最後に公開された状態: August 25, 2014No 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===========================================================