From: Regina Obe Date: Wed, 16 Jan 2013 09:42:40 +0000 (+0000) Subject: fix formatting and word changes to tiger extension install section X-Git-Tag: 2.1.0beta2~247 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10bb63608176691c6beaa6be25496d4f796b1ec2;p=postgis fix formatting and word changes to tiger extension install section git-svn-id: http://svn.osgeo.org/postgis/trunk@10981 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/installation.xml b/doc/installation.xml index 36fbe6bdb..125a19b35 100644 --- a/doc/installation.xml +++ b/doc/installation.xml @@ -996,37 +996,37 @@ Failed: 0 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. 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 fuzzystrmatch extension already installed, you don't need to do the second step either. CREATE EXTENSION postgis; - CREATE EXTENSION fuzzystrmatch; - CREATE EXTENSION postgis_tiger_geocoder; +CREATE EXTENSION fuzzystrmatch; +CREATE EXTENSION postgis_tiger_geocoder; To confirm your install is working correctly, run this sql in your database: SELECT na.address, na.streetname,na.streettypeabbrev, na.zip FROM normalize_address('1 Devonshire Place, Boston, MA 02109') AS na; Which should output address | streetname | streettypeabbrev | zip - ---------+------------+------------------+------- - 1 | Devonshire | Pl | 02109 +---------+------------+------------------+------- + 1 | Devonshire | Pl | 02109 - Create a new profile in tiger.loader_platform with the paths of your executables and server. - So for example to create a profile called debbie that follows sh convention. I would do: + Create a new record in tiger.loader_platform table with the paths of your executables and server. + So for example to create a profile called debbie that follows sh convention. You would do: INSERT INTO tiger.loader_platform(os, declare_sect, pgbin, wget, unzip_command, psql, path_sep, loader, environ_set_command, county_process_command) - SELECT 'debbie', declare_sect, pgbin, wget, unzip_command, psql, path_sep, - loader, environ_set_command, county_process_command - FROM tiger.loader_platform - WHERE os = 'sh'; - And then edit the paths in the declare_sect to those that fit Debbie's pg path locations. +SELECT 'debbie', declare_sect, pgbin, wget, unzip_command, psql, path_sep, + loader, environ_set_command, county_process_command + FROM tiger.loader_platform + WHERE os = 'sh'; + And then edit the paths in the declare_sect column to those that fit Debbie's pg, unzip,shp2pgsql, psql, etc path locations. If you don't edit this loader_platform table, it will just contain common case locations of items and you'll have to edit the generated script after the script is generated. Then run the and SQL functions make sure to use the name of your custom profile. So for example to do the nation load using our new profile we would: - SELECT Loader_Generate_Nation_Script('debbie') + SELECT Loader_Generate_Nation_Script('debbie'); Converting a Tiger Geocoder Regular Install to Extension Model If you installed the tiger geocoder without using the extension model, you can convert to the extension model as follows: Follow instructions in for the non-extension model upgrade. - Connect to your data with psql or pgAdmin and run the following command: + Connect to your database with psql or pgAdmin and run the following command: CREATE EXTENSION postgis_tiger_geocoder FROM unpackaged;