Reference Data Loader

Created:01/09/2001
Description:

The Reference Data Loader command loads the reference data for a locator into an ArcMap document. This sample demonstrates how to add locators to an ArcMap document, and how to retrieve the reference data from a locator. Some of the functionality uwsed by this command is contained in the Geocoding Tools Library. This tool is useful when used in conjunction with the Address Inspector Tool

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 ArcMap, browse to and select RefDataLoader.dll using the 'Add From File' button on the Customize dialog box.
  3. From the 'Developer Samples' commands category, add the 'Add Geocoding Service Reference Data' item to a toolbar.
  4. Click the Add Geocoding Service Reference Data command.
  5. Click the name of the locator whose reference data you want to add to the ArcMap document. If the locator does not appear in the list, click Add to browse for a geocoding service.
  6. Click OK to add the reference data to the map.

Application:
ArcMap

Requires: A geocoding service.

Difficulty: Intermediate


Visual Basic
File Description
frmReferenceDataLoader.frm Form on which you select the locator whose reference data you want to add to the ArcMap document.
clsRefDataLoaderCommand.cls Class file that implements ICommand to create the Reference Data Loader command.
IReferenceDataLoader.cls Class file that defines the IReferenceDataLoader interface.
ReferenceDataLoader.cls Class file that implements the IReferenceDataLoader interface to create the reference data loader.
GeocodingDeveloperSamples.res Resource file for geocoding developer samples.
RefDataLoader.vbp The project file for the command.
RefDataLoader.dll The compiled project.


Key CoClasses: ESRIFDOAddressLocator, LocatorExtension, StreetMapAddressLocator
Key Interfaces: ILocatorExtension, IPlaceNameAlias, IReferenceDataFile, IReferenceDataTable, IReferenceDataTables
Key Members: ILocatorExtension::AddLocator, ILocatorExtension::Locator, ILocatorExtension::LocatorCount, IPlaceNameAlias::Table, IReferenceDataFile::PathName, IReferenceDataTable::Name, IReferenceDataTables::Tables