How to rematch a geocoded feature class


Development licensing Deployment licensing
Engine Developer Kit Engine Runtime
ArcView ArcView
ArcEditor ArcEditor
ArcInfo ArcInfo

Rematching a geocoded feature class

After geocoding a table of addresses, you can review the results. If you are not satisfied with the results, you can modify the address locator's settings and try to geocode the table of addresses or records that were not matched again. This process is known as rematching.
 
There are a number of ways to specify addresses in a geocoded feature class that you want to rematch including:  
 
The IAdvancedGeocoding2 interface has methods and properties to standardize addresses and find candidates and matches for standardized addresses. Usually, you use the IAdvancedGeocoding2 interface to rematch a geocoded feature class using the RematchTable method.
 
The RematchTable method takes a number of parameters. Most of these parameters can be retrieved directly from the AttachedLocator object associated with the geocoded feature class. See the following:
 

[VB.NET]
Dim pConnectionProperties As ESRI.ArcGIS.esriSystem.IPropertySet
Dim pWorkspaceFactory As ESRI.ArcGIS.Geodatabase.IWorkspaceFactory
Dim pFeatureWorkspace As ESRI.ArcGIS.Geodatabase.IFeatureWorkspace
Dim pFeatureClass As ESRI.ArcGIS.Geodatabase.IFeatureClass
Dim pLocatorManager As ESRI.ArcGIS.Location.ILocatorManager
Dim pAttachedLocator As ESRI.ArcGIS.Location.IAttachedLocator
Dim pAdvancedGeocoding As ESRI.ArcGIS.Location.IAdvancedGeocoding
Dim pGeocodingProperties As ESRI.ArcGIS.Location.IGeocodingProperties

' Open an ArcSDE workspace.
pConnectionProperties = New ESRI.ArcGIS.esriSystem.PropertySetClass
With pConnectionProperties
.SetProperty("server", "mendota")
.SetProperty("instance", "esri_sde")
.SetProperty("database", "arcobjects")
.SetProperty("user", "sde")
.SetProperty("password", "sde")
.SetProperty("version", "SDE.Default")
End With

pWorkspaceFactory = New ESRI.ArcGIS.DataSourcesGDB.SdeWorkspaceFactoryClass
pFeatureWorkspace = pWorkspaceFactory.Open(pConnectionProperties, 0)

' Open the feature class to rematch.
pFeatureClass = pFeatureWorkspace.OpenFeatureClass("arcobjects.SDE.REDLANDS_LOCATION")

' Get the locator that is attached to the feature class.
pLocatorManager = New ESRI.ArcGIS.Location.LocatorManagerClass
pAttachedLocator = pLocatorManager.GetLocatorFromDataset(pFeatureClass)
pAdvancedGeocoding = pAttachedLocator.Locator

' Modify the geocoding properties on the locator and rematch the feature class.
pGeocodingProperties = pAdvancedGeocoding
pGeocodingProperties.MinimumMatchScore = 100
With pAttachedLocator
pAdvancedGeocoding.RematchTable(.InputTable, .InputFieldNamesList, .InputJoinFieldName, _
.OutputTable, .OutputFieldNamesList, .OutputJoinFieldName, "", Nothing)
End With


See Also:

Location library overview