How to rebuild an address locator


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

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

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);