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()
# 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"