From: Regina Obe Date: Sat, 26 Mar 2011 18:04:03 +0000 (+0000) Subject: update docs to reflect changes in tiger loader X-Git-Tag: 2.0.0alpha1~1832 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e32cb6cf58967fa971fe3f94c4425f5ec80e260;p=postgis update docs to reflect changes in tiger loader git-svn-id: http://svn.osgeo.org/postgis/trunk@6970 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/extras_tigergeocoder.xml b/doc/extras_tigergeocoder.xml index 8ee1a5c4a..11f00bc98 100644 --- a/doc/extras_tigergeocoder.xml +++ b/doc/extras_tigergeocoder.xml @@ -183,7 +183,7 @@ SELECT * FROM addresses_to_geocode WHERE rating is not null; loader_variables keeps track of various variables such as census site, year, data and staging schemas - loader_platform profiles of various platforms and where the varous executables are located. Comes with windows and linux. More can be added. + loader_platform profiles of various platforms and where the various executables are located. Comes with windows and linux. More can be added. loader_lookuptables each record defines a kind of table (state, county), whether to process records in it and how to load them in. Defines the steps to import data, stage data, add, removes columns, indexes, and constraints for each. Each table is prefixed with the state and inherits from a table in the tiger schema. e.g. creates tiger_data.ma_faces which inherits from tiger.faces @@ -199,18 +199,38 @@ SELECT * FROM addresses_to_geocode WHERE rating is not null; Examples Generate script to load up data for 2 states in Windows shell script format. SELECT loader_generate_script(ARRAY['MA','RI'], 'windows') AS result; -set STATEDIR="\gisdata\www2.census.gov\geo\pvs\tiger2010st\25_Massachusetts" +-- result -- +set STATEDIR="\gisdata\www2.census.gov\geo\pvs\tiger2010st\44_Rhode_Island" set TMPDIR=\gisdata\temp\ set UNZIPTOOL="C:\Program Files\7-Zip\7z.exe" set WGETTOOL="C:\wget\wget.exe" +set PGBIN=C:\Program Files\PostgreSQL\8.4\bin\ +set PGPORT=5432 +set PGHOST=localhost +set PGUSER=postgres +set PGPASSWORD=yourpasswordhere +set PGDATABASE=geocoder +set PSQL="%PGBIN%psql" +set SHP2PGSQL="%PGBIN%shp2pgsql" + +%WGETTOOL% http://www2.census.gov/geo/pvs/tiger2010st/44_Rhode_Island/ --no-parent --relative --recursive --level=2 --accept=zip,txt --mirror --reject=html : : - Generate Linux script - SELECT loader_generate_script(ARRAY['MA','RI'], 'linux') AS result; + Generate sh script + SELECT loader_generate_script(ARRAY['MA','RI'], 'sh') AS result; -- result -- -STATEDIR="/gisdata/www2.census.gov/geo/pvs/tiger2010st/25_Massachusetts" -TMPDIR="/gisdata/temp/ +STATEDIR="/gisdata/www2.census.gov/geo/pvs/tiger2010st/44_Rhode_Island" +TMPDIR="/gisdata/temp/" UNZIPTOOL=unzip +PGPORT=5432 +PGHOST=localhost +PGUSER=postgres +PGPASSWORD=yourpasswordhere +PGDATABASE=geocoder +PSQL=psql +SHP2PGSQ=shp2pgsql + +wget http://www2.census.gov/geo/pvs/tiger2010st/44_Rhode_Island/ --no-parent --relative --recursive --level=2 --accept=zip,txt --mirror --reject=html : :