Home arrow GIS Data & Resources arrow Scripts and Code arrow Python arrow Python, Refresh SDE Address Locators
Python, Refresh SDE Address Locators PDF Print E-mail

Written by AGRC Administrator,


Basic python code that AGRC uses to rebuild our sde-based address locators after repopulating the U024.StatewideStreets feature class. Usually runs as a one time scheduled task from the Windows control panel. Check to make sure that the install directory for ArcToolBox matches your ArcGIS install directory location. # ---------------------------------------------------------------------------
# rebuildgeocoders.py
# Updated on: Tue Sept 1 2009 for SGID93
#
# ---------------------------------------------------------------------------

# Import system modules
import sys, string, os, arcgisscripting

# Create the Geoprocessor object
gp = arcgisscripting.create()

# Load required toolboxes...
gp.AddToolbox("C:/Program Files/ArcGIS/ArcToolbox/Toolboxes/Geocoding Tools.tbx")


# Local variables...
U024_GC_StatewideStreets = "Database Connections\\DC_Transportation@ This e-mail address is being protected from spam bots, you need JavaScript enabled to view it _StatewideRoads"
U024_GC_StatewideStreets_ACS = "Database Connections\\DC_Transportation@ This e-mail address is being protected from spam bots, you need JavaScript enabled to view it _StatewideRoads_ACSALIAS"
U024_GC_StatewideStreets_Alias2 = "Database Connections\DC_Transportation@ This e-mail address is being protected from spam bots, you need JavaScript enabled to view it _StatewideRoads_ALIAS2"
U024_GC_StatewideStreets_Alias1 = "Database Connections\\DC_Transportation@ This e-mail address is being protected from spam bots, you need JavaScript enabled to view it _StatewideRoads_ALIAS1"

# Process: Rebuild Address Locator...
gp.RebuildAddressLocator_geocoding(U024_GC_StatewideStreets)

# Process: Rebuild Address Locator (2)...
gp.RebuildAddressLocator_geocoding(U024_GC_StatewideStreets_ACS)

# Process: Rebuild Address Locator (3)...
gp.RebuildAddressLocator_geocoding(U024_GC_StatewideStreets_Alias2)

# Process: Rebuild Address Locator (4)...
gp.RebuildAddressLocator_geocoding(U024_GC_StatewideStreets_Alias1)

Users' Comments  
 

No comment posted

Add your comment

01, Oct. 2007
Last Updated ( 01, Sep. 2009 )
 
< Prev   Next >

AGRC Contacts | UGIC Contacts

feed image feed image

Utah GIS Portal © 2009 AGRC

Optimized for