Geocoding Index Management

Created:01/09/2001
Description:

The Geocoding Index Management sample illustrates how to maintain the geocoding indexes for an address locator. This developer sample consists of a menu and two commands. One command allows you to set up a the geocoding index tables for an address locator to be automatically updated when the reference data tables or feature classes are edited. The other command allows you to rebuild the geocoding indexes for an address locator. Most of the functionality used by this tool is contained in the Geocoding Tools Library.

How to use:
  1. Open the GeocodingToolsLib.vbp project and compile the DLL. Alternatively, you can register the GeocodingToolsLib.dll that is located in the same folder.
  2. In ArcCatalog, check the Context Menus toolbar on the Toolbars tab in the Customize dialog box.
  3. Browse to and select GCIndexManagement.dll using the 'Add From File' button.
  4. From the 'Menus' commands category on the Commands tab, drag the 'Geocoding Indexes' menu onto the Locator Context Menu.
  5. Close the Customize dialog box.
  6. To rebuild the geocoding indexes for a geocoding service, right-click the geocoding service in ArCatalog, click Geocoding Indexes, and click Rebuild Geocoding Indexes. Check the indexes that you want to rebuild, and click OK.
  7. To automate the geocoding indexes for a geocoding service, right-click the geocoding service in ArcCatalog, click Geocoding Indexes, and click Automate Geocoding Indexes. Check the indexes that you want to automate, and click OK.

Application:
ArcCatalog

Requires: The Automate Geocoding Indexes command requires a geocoding service that uses geodatabase tables or feature classes as reference data. You must have write access to the geocoding index tables. This command creates a relationship class between the reference data tables and geocoding index tables, so you must have an ArcInfo or ArcEditor license to use this command. This command will fail if the geocoding index table is being previewed in ArcCatalog. The Rebuild Geocoding Indexes command requires that you have read access to the workspace that contains the geocoding indexes. If you are rebuilding the geocoding indexes for an ArcSDE reference data source, you must have an ArcInfo or ArcEditor license.

Difficulty: Advanced


Visual Basic
File Description
frmChecklist.frm Checklist dialog used by the sample.
frmGCIndexManagementResources.frm Form that contains graphics resources for the sample.
ChecklistDialog.cls Class that implements IChecklistCallback and IChecklistDialog to control the behavior of the checklist dialog.
clsAutoGCIndex.cls Class that implements ICommand to create the Automate Geocoding Indexes command.
clsGCIndexMenu.cls Class that implements IMenuDef and IRootLevelMenu to create the Geocoding Indexes menu.
clsRebuildGCIndex.cls Class that implements ICommand to create the Rebuild Geocoding Indexes command.
IChecklistCallback.cls Class that defines the IChecklistCallback interface.
IChecklistDialog.cls Class that defines the IChecklistDialog interface.
GeocodingDeveloperSamples.res Resource file for geocoding developer samples.
GCIndexManagement.vbp The project file for the commands and the menu.
GCIndexManagement.dll The compiled project.


Key CoClasses: ESRIFDOAddressLocator, GxLocator
Key Interfaces: IGxLocator, IReferenceDataField, IReferenceDataIndex, IReferenceDataTable, IReferenceDataTables
Key Members: IReferenceDataField::InternalName, IReferenceDataIndex::Build, IReferenceDataIndex::Name, IReferenceDataTables::Fields, IReferenceDataTables::GeocodingIndexes, IReferenceDataTables::Name, IReferenceDataTables::Tables