Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > Geocoding toolbox > Tools

Rebuild Address Locator (Geocoding)

Release 9.2
Last modified March 30, 2008
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Tools"


Related Topics

Rebuilds an address locator


Usage tips

Command line syntax
An overview of the Command Line window
RebuildAddressLocator_geocoding <in_address_locator>

Parameter Explanation Data Type
<in_address_locator>

The address locator you want to rebuild

Address Locator
Data types for geoprocessing tool parameters


Command line example

Workspace "D:\Workspace\Madison"
RebuildAddressLocator "Madison Streets"

Workspace "D:\Workspace\Madison\Madison.mdb"
RebuildAddressLocator "Madison Streets"

Workspace "D:\Workspace\Madison\Madison.gdb"
RebuildAddressLocator "Madison Streets"

Workspace "Database Connections\\mendota.madison.sde"
RebuildAddressLocator "SDE.Madison Streets"

Scripting syntax
About getting started with writing geoprocessing scripts
RebuildAddressLocator_geocoding (in_address_locator)

Parameter Explanation Data Type
in_address_locator (Required)

The address locator you want to rebuild

Address Locator

Data types for geoprocessing tool parameters


Script example

# Example 1:
#   Rebuild a local address locator.
import arcgisscripting
GP = arcgisscripting.create()

try:
    GP.Workspace = "D:\Workspace\Madison"
    locator = "Madison Streets"
    GP.RebuildAddressLocator(locator)

except:
    print GP.GetMessages(2)

# Example 2:
#   Rebuild an address locator in a personal or file geodatabase.
import arcgisscripting
GP = arcgisscripting.create()

try:
    # Modify the following line to specify a file geodatabase workspace such as "D:\Workspace\Madison\Madison.gdb"
    GP.Workspace = "D:\Workspace\Madison\Madison.mdb"
    locator = "Madison Streets"
    GP.RebuildAddressLocator(locator)

except:
    print GP.GetMessages(2)

# Example 3:
#   Rebuild an ArcSDE address locator.
import arcgisscripting
GP = arcgisscripting.create()

try:
    GP.Workspace = "Database Connections\\mendota.madison.sde"
    locator = "SDE.Madison Streets"
    GP.RebuildAddressLocator(locator)

except:
    print GP.GetMessages(2)

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.