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 licensing Deployment licensing
Engine Developer Kit Engine
ArcGIS for Desktop Basic ArcGIS for Desktop Basic
ArcGIS for Desktop Standard ArcGIS for Desktop Standard
ArcGIS for Desktop Advanced ArcGIS for Desktop Advanced