]> granicus.if.org Git - postgis/commitdiff
#3227 incorporate Brian's suggested changes and fix some other minor issues with...
authorRegina Obe <lr@pcorp.us>
Sun, 16 Aug 2015 01:48:43 +0000 (01:48 +0000)
committerRegina Obe <lr@pcorp.us>
Sun, 16 Aug 2015 01:48:43 +0000 (01:48 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13907 b70326c6-7e19-0410-871a-916f4a2858ee

doc/installation.xml
extras/tiger_geocoder/README
extras/tiger_geocoder/create_geocode.sh
extras/tiger_geocoder/tiger_loader_2015.sql
extras/tiger_geocoder/upgrade_geocoder.sh

index 319baa4f7913d413a9b4103a6fa1d2b32934e50c..948dcd784a39cbe10b0f063ca3c645118f769723 100644 (file)
@@ -18,9 +18,16 @@ make install</programlisting>
        <note><para>The raster support is currently optional, but installed by default. For enabling using the PostgreSQL 9.1+ extensions model raster is required. Using the extension enable process is preferred and more user-friendly. To spatially enable your database:</para></note>
        <programlisting>psql -d yourdatabase -c "CREATE EXTENSION postgis;"
 psql -d yourdatabase -c "CREATE EXTENSION postgis_topology;"
-psql -d yourdatabase -c "CREATE EXTENSION postgis_tiger_geocoder;"
 -- if you built with sfcgal support --
 psql -d yourdatabase -c "CREATE EXTENSION postgis_sfcgal;"
+
+-- if you want to install tiger geocoder --
+psql -d yourdatabase -c "CREATE EXTENSION fuzzystrmatch"
+psql -d yourdatabase -c "CREATE EXTENSION postgis_tiger_geocoder;"
+
+-- if you installed with pcre 
+-- you should have address standardizer extension as well
+psql -d yourdatabase -c "CREATE EXTENSION address_standardizer;"
 </programlisting>
        
        
@@ -1264,13 +1271,13 @@ but you can download the latest at: <ulink url="http://www.pcre.org">http://www.
   <sect1 id="loading_extras_tiger_geocoder">
        <title>Installing, Upgrading Tiger Geocoder and loading data</title>
        
-       <para>Extras like Tiger geocoder may not be packaged in your PostGIS distribution, but will always be available in the postgis-&last_release_version;.tar.gz file. The instructions provided here are also available in the <filename>extras/tiger_geocoder/tiger_2011/README</filename> </para>
+       <para>Extras like Tiger geocoder may not be packaged in your PostGIS distribution, but will always be available in the postgis-&last_release_version;.tar.gz file. The instructions provided here are also available in the <filename>extras/tiger_geocoder/README</filename> </para>
        <para>If you are on Windows and you don't have tar installed, you can use <ulink url="http://www.7-zip.org/">http://www.7-zip.org/</ulink> to unzip the PostGIS tarball.</para>
        <sect2 id="install_tiger_geocoder_extension">
                <title>Tiger Geocoder Enabling your PostGIS database: Using Extension</title>   
-               <para>If you are using PostgreSQL 9.1+ and PostGIS 2.1.0, you can take advantage of the new extension model for installing tiger geocoder. To do so:</para>
+               <para>If you are using PostgreSQL 9.1+ and PostGIS 2.1+, you can take advantage of the new extension model for installing tiger geocoder. To do so:</para>
                <orderedlist>
-                       <listitem><para>First get binaries for PostGIS 2.1.0 or compile and install as usual.  This should install the necessary extension files as well for tiger geocoder.</para></listitem>
+                       <listitem><para>First get binaries for PostGIS 2.1+ or compile and install as usual.  This should install the necessary extension files as well for tiger geocoder.</para></listitem>
                        <listitem><para>Connect to your database via psql or pgAdmin or some other tool and run the following SQL commands.  Note that if you are installing in a database that already has postgis, you don't need to do the first step.  If you have <varname>fuzzystrmatch</varname> extension already installed, you don't need to do the second step either.</para>
                        <para><programlisting>CREATE EXTENSION postgis;         
 CREATE EXTENSION fuzzystrmatch;
@@ -1325,10 +1332,10 @@ SELECT 'debbie', declare_sect, pgbin, wget, unzip_command, psql, path_sep,
                </para>
        
                <para>
-                 <command>cd postgis-&last_release_version;/extras/tiger_geocoder/tiger_2011</command>
+                 <command>cd postgis-&last_release_version;/extras/tiger_geocoder</command>
                </para>
        
-               <para>Edit the <filename>tiger_loader_2012.sql</filename> to the paths of your executables server etc or alternatively you can update the <varname>loader_platform</varname> table once installed. If you don't edit this file or the <varname>loader_platform</varname> table, it will just contain common case locations of items and you'll have to edit the generated script after the fact when you run the  <xref linkend="Loader_Generate_Nation_Script" /> and <xref linkend="Loader_Generate_Script" />  SQL functions.
+               <para>Edit the <filename>tiger_loader_2015.sql</filename> (or latest loader file you find, unless you want to load different year) to the paths of your executables server etc or alternatively you can update the <varname>loader_platform</varname> table once installed. If you don't edit this file or the <varname>loader_platform</varname> table, it will just contain common case locations of items and you'll have to edit the generated script after the fact when you run the  <xref linkend="Loader_Generate_Nation_Script" /> and <xref linkend="Loader_Generate_Script" />  SQL functions.
                 </para>
                <para>If you are installing Tiger geocoder for the first time edit either the <filename>create_geocode.bat</filename> script If you are on windows
                        or the <filename>create_geocode.sh</filename> if you are on Linux/Unix/Mac OSX with your PostgreSQL specific settings and run the corresponding script from the commandline. </para>
index bdf544f9365245baa47f4eaa5e0cf7f3db662c57..7a88be66ec097c47a35f199725f91dc026a95120 100644 (file)
@@ -39,6 +39,7 @@ Steps using extensions:
 CREATE EXTENSION postgis;
 
 2) Next:
+CREATE EXTENSION fuzzystrmatch;
 CREATE EXTENSION postgis_tiger_geocoder;
 
 Loading up data:
@@ -62,7 +63,7 @@ WHITESPACE AND POSSIBLY NON-SCRIPT CHARACTERS THAT CAUSE IT TO BREAK.)
 
 -- UNIX /LINUX USERS --
 -- Note even if you want just specific states you need to 
--- do this step since 2011 county, state tables are available only at national level
+-- do this step since 2015 county, state tables are available only at national level
 SELECT loader_generate_nation_script('sh');  
 
 -- After the nation load, generate a bash script suitable for Unix command lines 
index 3692aaeea6a5004d3f059961a68a7e2ffc9aa27f..732501aad20d313e431dafc6c5d7fcfc598a7062 100755 (executable)
@@ -4,8 +4,8 @@ PGHOST=localhost
 PGUSER=postgres
 PGPASSWORD=yourpasswordhere
 THEDB=geocoder
-PSQL_CMD=/usr/bin/psql
-PGCONTRIB=/usr/share/postgresql/contrib
+PSQL_CMD= /usr/lib/postgresql/9.4/bin/psql
+PGCONTRIB=/usr/share/postgresql/9.4/contrib
 #if you are on 9.1+ use the CREATE EXTENSION syntax instead
 ${PSQL_CMD} -d "${THEDB}" -f "${PGCONTRIB}/fuzzystrmatch.sql"
 #${PSQL_CMD} -d "${THEDB}" -c "CREATE EXTENSION fuzzystrmatch" 
@@ -15,4 +15,4 @@ ${PSQL_CMD} -d "${THEDB}" -c "CREATE SCHEMA tiger"
 #${PSQL_CMD} -d "${THEDB}" -f "tables/lookup_tables_2010.sql"
 ${PSQL_CMD} -d "${THEDB}" -c "CREATE SCHEMA tiger_data"
 ${PSQL_CMD} -d "${THEDB}" -f "create_geocode.sql"
-${PSQL_CMD} -d "${THEDB}" -f "tiger_loader_2015.sql"
\ No newline at end of file
+${PSQL_CMD} -d "${THEDB}" -f "tiger_loader_2015.sql"
index bf3d09466afe80523afac69d59fcdee6cf1ab5bf..46387d3cae549490ebceba60686f259b5a00e837 100644 (file)
@@ -167,7 +167,7 @@ VALUES('windows', '%WGETTOOL%', '%PGBIN%',
 E'set TMPDIR=${staging_fold}\\temp\\
 set UNZIPTOOL="C:\\Program Files\\7-Zip\\7z.exe"
 set WGETTOOL="C:\\wget\\wget.exe"
-set PGBIN=C:\\Program Files\\PostgreSQL\\9.2\\bin\\
+set PGBIN=C:\\Program Files\\PostgreSQL\\9.4\\bin\\
 set PGPORT=5432
 set PGHOST=localhost
 set PGUSER=postgres
@@ -191,7 +191,7 @@ VALUES('sh', 'wget', '',
 E'TMPDIR="${staging_fold}/temp/"
 UNZIPTOOL=unzip
 WGETTOOL="/usr/bin/wget"
-export PGBIN=/usr/pgsql-9.0/bin
+export PGBIN=/usr/lib/postgresql/9.4/bin/
 export PGPORT=5432
 export PGHOST=localhost
 export PGUSER=postgres
index c3bc9aafa257d97d8e4385d6e9be6c0294d1dcad..55c4a8428ff24e2a6f7cc16d3bae857b5d37ee1e 100755 (executable)
@@ -10,4 +10,4 @@ ${PSQL_CMD} -d "${THEDB}" -f "upgrade_geocode.sql"
 
 #unremark the loader line to update your loader scripts
 #note this wipes out your custom settings in loader_* tables
-#${PSQL_CMD} -d "${THEDB}" -f "tiger_loader_2013.sql"
\ No newline at end of file
+#${PSQL_CMD} -d "${THEDB}" -f "tiger_loader_2013.sql"