]> granicus.if.org Git - postgis/commitdiff
update pagc install instructions
authorRegina Obe <lr@pcorp.us>
Fri, 19 Jul 2013 04:04:10 +0000 (04:04 +0000)
committerRegina Obe <lr@pcorp.us>
Fri, 19 Jul 2013 04:04:10 +0000 (04:04 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@11699 b70326c6-7e19-0410-871a-916f4a2858ee

doc/extras_tigergeocoder.xml
doc/installation.xml

index 60b4fc937d868073ea7a60347d63c0766dc72ca8..33071899074e67dfcccf20bfab0eb53a395c38f2 100644 (file)
@@ -22,7 +22,7 @@ until release.  If you have data from tiger_2010 and want replace with tiger_201
                          
                          <note><para>New in PostGIS 2.1.0 release is ability to install tiger geocoder with PostgreSQL extension model if you are running PostgreSQL 9.1+. Refer to <xref linkend="install_tiger_geocoder_extension" /> for details.</para></note>
                          </para>
-                         <para>Also new in PostGIS 2.1.0 is integration with pagc address standardizer C library which source can be downloaded from <ulink url="http://pagc.svn.sourceforge.net/viewvc/pagc/branches/sew-refactor/postgresql">PAGC PostgreSQL address standardizer extension</ulink> and after install and install of the libraray in your PostGIS database, you can use the <xref linkend="Pagc_Normalize_Address" /> function as a drop in replacement for in-built <xref linkend="Normalize_Address" />.</para> 
+                         <para>Also new in PostGIS 2.1.0 is integration with pagc address standardizer PostgreSQL extension which source can be downloaded from <ulink url="http://sourceforge.net/p/pagc/code/360/tree/branches/sew-refactor/postgresql">PAGC PostgreSQL address standardizer extension</ulink> and after install and install of the library in your PostGIS database, you can use the <xref linkend="Pagc_Normalize_Address" /> function as a drop in replacement for in-built <xref linkend="Normalize_Address" />.</para> 
                
 
 
index e6657cffe44ab9205e173bc3c5d8c0762caf3f83..4a3d404b507d9ff6e900acf80a21e60e57372d3a 100644 (file)
@@ -1236,7 +1236,19 @@ SELECT 'debbie', declare_sect, pgbin, wget, unzip_command, psql, path_sep,
                
                <sect3 id="installing_pagc_address_standardizer"><title>Using PAGC address standardizer</title>
                        <para>One of the many complaints of folks is the address normalizer function <xref linkend="Normalize_Address" /> function that normalizes an address for prepping before geocoding.  The normalizer is far from perfect and trying to patch its imperfectness takes a vast amount of resources.  As such we have integrated with another
-                       project that has a much better address standardizer engine.  This is currently a separate project, which is a subproject of PAGC.  The source code for this PostgreSQL standardizer extension can be downloaded from <ulink url="http://pagc.svn.sourceforge.net/viewvc/pagc/branches/sew-refactor/postgresql">PAGC PostgreSQL Address Standardizer</ulink>.  To use this new normalizer, you compile the pagc extension and install as an extension in your database with:</para>
+                       project that has a much better address standardizer engine.  This is currently a separate project, which is a subproject of PAGC.  The source code for this PostgreSQL standardizer extension can be downloaded from <ulink url="http://sourceforge.net/p/pagc/code/360/tree/branches/sew-refactor/postgresql">PAGC PostgreSQL Address Standardizer</ulink>.  To use this new normalizer, you compile the pagc extension and install as an extension in your database with:</para>
+                       <para>The PAGC project and standardizer portion in particular, relies on PCRE which is usually already installed on most Nix systems, 
+but you can download the latest at: <ulink url="http://www.pcre.org">http://www.pcre.org</ulink> </para>
+                       <para>For Windows users, the PostGIS 2.1+ bundle will come packaged with the address_standardizer already so no need to compile and can move straight to <code>CREATE EXTENSION</code> step.</para>
+                       <para>Compiling</para>
+                       <programlisting>svn co svn://svn.code.sf.net/p/pagc/code/branches/sew-refactor/postgresql address_standardizer
+cd address_standardizer
+make
+#if you have in non-standard location pcre try
+# make SHLIB_LINK="-L$/path/pcre/lib -lpostgres -lpgport -lpcre" CPPFLAGS="-I.  -I$/path/pcre/include" 
+make install</programlisting>
+
+      <para>Once you have installed, you can connect to your database and run the SQL:</para>
                        <programlisting>CREATE EXTENSION address_standardizer;</programlisting>
                        
                        <para>Once you install this extension in the same database as you have installed <code>postgis_tiger_geocoder</code>, then the <xref linkend="Pagc_Normalize_Address" /> can be used instead of <xref linkend="Normalize_Address" />. The other nice thing about this extension is that its tiger agnostic, so can be used with other data sources such as international addresses.</para>