Processing Tiger Data:

  1. Process all Tiger data into shape files. This can be done by using the tgr2shp tool found at TGR2SHP
  2. Change path for the postgres install directory in reset.bat, pgloadshape.bat and pgloadcounty.bat. These batch files were created on a 64bit machine, so the path to the install is not the same as on x86 machines.
  3. Change dbname in reset.bat and pgload.bat
  4. If not importing the state of Alabama, then will need to edit the pgloadcounty.bat file and change the 'IF' statement to reflect the first shape file that will be imported. This is done in order to change the options for creating vs appending to an existing table.
  5. execute pgload.bat. NOTE: If you want to execute more than one pgload.bat at a time, then put some directory listings in separate text files and use the change the executing 'for' statement in pgload.bat.
  6. When you have imported all the data you wish, execute the geo_live_search.sql in the database you wish to have geocoding
  7. Now geocode away: SELECT * FROM geo_live_search(address, max count to return);