How to rebuild an address locator


Summary
The content in this article is not yet complete and is under review.

Rebuild a local address locator
[Java]
GeoProcessor GP = new GeoProcessor();
RebuildAddressLocator rebuild = new RebuildAddressLocator();
//quotes are needed around the path to the address locator when it contains spaces
rebuild.setInAddressLocator("\"D:\\Workspace\\Madison\\Madison Streets\"");
GP.execute(rebuild, null);
Rebuild an address locator in a personal or file geodatabase
[Java]
GeoProcessor GP = new GeoProcessor();
RebuildAddressLocator rebuild = new RebuildAddressLocator();
//quotes are needed around the path to the address locator when it contains spaces
rebuild.setInAddressLocator(
    "\"D:\\Workspace\\Madison\\Madison.mdb\\Madison Streets\"");
GP.execute(rebuild, null);
Rebuild an ArcSDE address locator
[Java]
GeoProcessor GP = new GeoProcessor();
RebuildAddressLocator rebuild = new RebuildAddressLocator();
//quotes are needed around the path to the address locator when it contains spaces
rebuild.setInAddressLocator(
    "\"Database Connections\\mendota.madison.sde\\SDE.Madison Streets\"");
GP.execute(rebuild, null);






Development licensingDeployment licensing
Engine Developer KitEngine
ArcGIS for Desktop BasicArcGIS for Desktop Basic
ArcGIS for Desktop StandardArcGIS for Desktop Standard
ArcGIS for Desktop AdvancedArcGIS for Desktop Advanced