]> granicus.if.org Git - postgis/commitdiff
#1837 dupe refentry
authorRegina Obe <lr@pcorp.us>
Tue, 22 May 2012 15:29:57 +0000 (15:29 +0000)
committerRegina Obe <lr@pcorp.us>
Tue, 22 May 2012 15:29:57 +0000 (15:29 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9784 b70326c6-7e19-0410-871a-916f4a2858ee

doc/extras_tigergeocoder.xml

index e9df246c1f822bfcec6fe5b0e8adf15520e0a05f..cddfa41def2c1df6777f1fca2a6f3a166c5fe672 100644 (file)
@@ -522,96 +522,6 @@ tract_id
          </refsection>
        </refentry>
 
-       <refentry id="Loader_Generate_Script">
-         <refnamediv>
-               <refname>Loader_Generate_Script</refname>
-
-               <refpurpose>Generates a shell script for the specified platform for the specified states that will download Tiger data, stage and load into <varname>tiger_data</varname> schema. Each state script is returned as a separate record. Latest version supports Tiger 2010 structural changes and also loads census tract, block groups, and blocks tables.</refpurpose>
-         </refnamediv>
-
-         <refsynopsisdiv>
-               <funcsynopsis>
-                 <funcprototype>
-                       <funcdef>setof text <function>loader_generate_script</function></funcdef>
-                       <paramdef><type>text[]</type> <parameter>param_states</parameter></paramdef>
-                       <paramdef><type>text</type> <parameter>os</parameter></paramdef>
-                 </funcprototype>
-               </funcsynopsis>
-         </refsynopsisdiv>
-
-         <refsection>
-               <title>Description</title>
-
-               <para>Generates a shell script for the specified platform for the specified states that will download Tiger data, stage and load into <varname>tiger_data</varname> schema.  Each state script is returned as a separate record.</para>
-               <para>It uses unzip on Linux (7-zip on Windows by default) and wget to do the downloading. It uses <xref linkend="shp2pgsql_usage" /> to load in the data. Note the smallest unit it does is a whole state, but you can overwrite this by downloading the files yourself.  It will only
-               process the files in the staging and temp folders.</para>
-               <para>It uses the following control tables to control the process and different OS shell syntax variations.</para>
-
-               <orderedlist>
-          <listitem>
-            <para><varname>loader_variables</varname> keeps track of various variables such as census site, year, data and staging schemas</para>
-          </listitem>
-          <listitem>
-            <para><varname>loader_platform</varname> profiles of various platforms and where the various executables are located.  Comes with windows and linux. More can be added.</para>
-          </listitem>
-          <listitem>
-            <para><varname>loader_lookuptables</varname> 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 <varname>tiger_data.ma_faces</varname> which inherits from <varname>tiger.faces</varname></para>
-          </listitem>
-        </orderedlist> 
-               <para>Availability: 2.0.0 to support Tiger 2010 structured data and load census tract (tract), block groups (bg), and blocks (tabblocks) tables .</para>
-
-
-         </refsection>
-
-
-         <refsection>
-               <title>Examples</title>
-               <para>Generate script to load up data for 2 states in Windows shell script format.</para>
-               <programlisting>SELECT loader_generate_script(ARRAY['MA','RI'], 'windows') AS result;
--- 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
-:
-:</programlisting>
-               <para>Generate sh script</para>
-               <programlisting>SELECT loader_generate_script(ARRAY['MA','RI'], 'sh') AS result;
--- result --
-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
-:
-:</programlisting>
-
-         </refsection>
-
-         <!-- Optionally add a "See Also" section -->
-         <refsection>
-               <title>See Also</title>
-               <para></para>
-         </refsection>
-       </refentry>
-       
        <refentry id="Loader_Generate_Census_Script">
          <refnamediv>
                <refname>Loader_Generate_Census_Script</refname>
@@ -720,7 +630,7 @@ for z in *.zip; do $UNZIPTOOL -o -d $TMPDIR $z; done
          </refsection>
        </refentry>
        
-               <refentry id="Loader_Generate_Script">
+       <refentry id="Loader_Generate_Script">
          <refnamediv>
                <refname>Loader_Generate_Script</refname>