From: Regina Obe Date: Wed, 10 Jul 2013 03:43:04 +0000 (+0000) Subject: #2245 Doc patches to tiger X-Git-Tag: 2.2.0rc1~1453 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a5473d6b289ba70730edcc84f77b6cfe3e909093;p=postgis #2245 Doc patches to tiger git-svn-id: http://svn.osgeo.org/postgis/trunk@11650 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/extras/tiger_geocoder/README b/extras/tiger_geocoder/README index 3cb020d2c..309d1aeb0 100644 --- a/extras/tiger_geocoder/README +++ b/extras/tiger_geocoder/README @@ -1,7 +1,7 @@ $Id$ TIGER Geocoder - 2011/01/23 + 2013/07/09 A plpgsql based geocoder written for TIGER census data. @@ -23,7 +23,7 @@ produce a point geometry reflecting the location of the given address. Installation: - Refer to the README in the respective year tiger folder for installation and example usage. The latest scripts as of this writing are for tiger_2010. + Refer to the README in the respective year tiger folder for installation and example usage. The latest scripts as of this writing are for tiger_2012. Usage: @@ -59,4 +59,4 @@ Usage: address | predirabbrev | streetname | streettypeabbrev | postdirabbrev | internal | location | stateabbrev | zip | parsed ---------+-------------+-----------------------+------------------+---------------+----------+----------+-------------+-------+-------- - 29645 | | 7th Street SW Federal | Way | | | | | 98023 | \ No newline at end of file + 29645 | | 7th Street SW Federal | Way | | | | | 98023 | \ No newline at end of file diff --git a/extras/tiger_geocoder/tiger_2011/README b/extras/tiger_geocoder/tiger_2011/README index f641a6205..ebf7ce3a7 100644 --- a/extras/tiger_geocoder/tiger_2011/README +++ b/extras/tiger_geocoder/tiger_2011/README @@ -25,7 +25,7 @@ Steps to install and load (without using extensions) 1. Create a PostGIS enabled db if you don't have one already -2. From command line, cd into the tiger_geocoder_2010 folder +2. From command line, cd into the tiger_geocoder_2011 folder 3. Edit the tiger_loader.sql to the paths of your executables server etc. @@ -66,20 +66,18 @@ WHITESPACE AND POSSIBLY NON-SCRIPT CHARACTERS THAT CAUSE IT TO BREAK.) -- do this step since 2011 county, state tables are available only at national level SELECT loader_generate_nation_script('sh'); -Then run the above script +-- After the nation load, generate a bash script suitable for Unix command lines +-- for your desired states. --- then run script for your desired states SELECT loader_generate_script(ARRAY['DC','RI'], 'sh'); ---To generate a bash script suitable for Unix command lines -SELECT loader_generate_script(ARRAY['DC','RI'], 'sh'); ONCE YOU GENERATE THIS SCRIPT, EDIT IT TO ADD "set -e -u" AT THE TOP; THIS SETTING WILL MAKE IT STOP ON ERROR OR UNITIALIZED VARIABLE AND -MAKE IT EASIER TO DEBUG ANY PROBLEMS. THEN RUN THE SCRIPT AT THE -COMMAND LINE, REDIRECTING STANDARD OUTPUT AND STANDARD ERROR TO USEFUL -FILES. YOU MAY WANT TO RUN "tail -f " TO SEE THE STANDARD ERROR AS IT -GETS WRITTEN. FOR EXAMPLE: +MAKE IT EASIER TO DEBUG ANY PROBLEMS. +THEN RUN THE SCRIPT AT THE COMMAND LINE, REDIRECTING STANDARD OUTPUT AND +STANDARD ERROR TO USEFUL FILES. YOU MAY WANT TO RUN "tail -f " TO SEE THE +STANDARD ERROR AS IT GETS WRITTEN. FOR EXAMPLE: $ sh foo.sh 1>out 2>err; tail -f err @@ -94,9 +92,9 @@ SELECT loader_generate_nation_script('windows'); SELECT loader_generate_script(ARRAY['DC','RI'], 'windows'); If your script disappears without loading anything, -most likely one of your path settings is wrong. +most likely one of your path settings is wrong. To troubleshoot run the batch script by -first opening up a commandline and executing the file. +first opening up a commandline and executing the file. That will keep the window open for you to see the error. @@ -144,4 +142,4 @@ queries. It will fail on some steps such as addition of new columns to lookup tables if they already exist in your intall. -These errors can be safely ignored. \ No newline at end of file +These errors can be safely ignored.