]> granicus.if.org Git - postgis/commitdiff
some other minor doc corrections. Stamp files with svn author, revision etc keywords
authorRegina Obe <lr@pcorp.us>
Fri, 28 Jan 2011 15:01:30 +0000 (15:01 +0000)
committerRegina Obe <lr@pcorp.us>
Fri, 28 Jan 2011 15:01:30 +0000 (15:01 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6755 b70326c6-7e19-0410-871a-916f4a2858ee

doc/extras_tigergeocoder.xml
extras/tiger_geocoder/README
extras/tiger_geocoder/tiger_2006andbefore/README
extras/tiger_geocoder/tiger_geocoder_2010/README
extras/tiger_geocoder/tiger_geocoder_2010/geocode/geocode.sql
extras/tiger_geocoder/tiger_geocoder_2010/geocode/geocode_address.sql
extras/tiger_geocoder/tiger_geocoder_2010/geocode/geocode_location.sql
extras/tiger_geocoder/tiger_geocoder_2010/geocode/other_helper_functions.sql
extras/tiger_geocoder/tiger_geocoder_2010/geocode/rate_attributes.sql
extras/tiger_geocoder/tiger_geocoder_2010/tables/lookup_tables_2010.sql

index 91e2cdeef7e9a57bb2e69ee25119890a71123180..2ddf4210903d357a9a8d80c800f5feeb2cd8bb91 100644 (file)
@@ -169,6 +169,7 @@ SELECT * FROM addresses_to_geocode WHERE rating is not null;
 
                <para>Given a textual street address, returns a composite <varname>norm_addy</varname> type that has road suffix, prefix and type standardized, street, streetname etc. broken into separate fields.  This is the first step in the geocoding process to 
                    get all addresses into normalized postal form. No other data is required aside from what is packaged with the geocoder.</para>
+               <para>It uses various control lookup tables located in <varname>tiger</varname> schema to normalize the input address.</para>
                <para>Fields in the <varname>norm_addy</varname> type object returned by this function in this order where  () indicates a field required by the geocoder, [] indicates an optional field:</para>
                <para>(address) [dirPrefix] (streetName) [streetType] [dirSuffix][internal] [location] [state] [zipCode]</para>
          <orderedlist>
@@ -194,7 +195,7 @@ SELECT * FROM addresses_to_geocode WHERE rating is not null;
             <para><varname>location</varname> varchar usually a city or governing province.</para>
           </listitem>
            <listitem>
-            <para><varname>state</varname> varchar two character US State.  e.g MA, NY, MI</para>
+            <para><varname>state</varname> varchar two character US State.  e.g MA, NY, MI.  These are controlled by the <varname>state_lookup</varname> table.</para>
           </listitem>
           <listitem>
             <para><varname>zip</varname> varchar 5-digit zipcode. e.g. 02109.</para>
index 9e9101cc8d5d326c4aa90bb362d39b06aa652db2..0e9f0f9500370484d7199efd413dfa9715b6df1c 100644 (file)
@@ -1,3 +1,4 @@
+$Id$\r
 TIGER Geocoder\r
 \r
   2011/01/23\r
index ecbd2a8b90836441a4761ecb37e395fe8872ea12..6e4fc4c6d355be4913c9d826735c9cdf42028094 100644 (file)
@@ -1,3 +1,4 @@
+$Id: README 6731 2011-01-25 18:08:57Z robe $\r
 TIGER Geocoder\r
 \r
   2004/10/28\r
index 540aa1412006fa6e184f94b519444fba46cbc81e..57e67f37892960fff159fde2623e9484637218a9 100644 (file)
@@ -1,9 +1,10 @@
-INSTALLING THE Tiger Geocoder\r
+$Id$\r
+INSTALLING The Tiger Geocoder\r
 This is a customized version of Steve Frost's tiger geocoder revisions (http://www.snowman.net/git/tiger_geocoder/).  \r
 This version includes a loader that is portable between Linux and Windows but loads a full state of data.  The loader helper tables\r
 and functions are prefixed with loader and stored in the tiger schema.  If you only want to load a county, then\r
-revise the wget call that is generated for the state to just download the state wide and specific counties.  The loader will only\r
-process files that exists.\r
+revise the wget call that is generated for the state to just download the state wide and specific counties or just download them by hand.  The loader will only\r
+process files that exist.\r
 \r
 If you are on windows -- you will need 7zip and wget.\r
 7zip you can get from http://www.7-zip.org/  and wget you can get from http://gnuwin32.sourceforge.net/packages/wget.htm\r
index 940b8582808745286333eb0197da7d65863a78c9..c39cc71b5eedc8885626efdfd09704ea6ae74f74 100644 (file)
@@ -1,3 +1,4 @@
+--$Id$\r
 CREATE OR REPLACE FUNCTION geocode(\r
     input VARCHAR,\r
     OUT ADDY NORM_ADDY,\r
index f6b685fe3fde00bfdcd856730b70cbcbfdca2849..56822e4b85de6363f7a98024b4377848eff21712 100644 (file)
@@ -1,3 +1,4 @@
+--$Id$\r
 CREATE OR REPLACE FUNCTION geocode_address(IN parsed norm_addy, OUT addy norm_addy, OUT geomout geometry, OUT rating integer)\r
   RETURNS SETOF record AS\r
 $$\r
index 06955f9e47dd11f749ba73c90d4552ce0e57a62a..ed0164491b4e43e5525d9c8bb52271c06f66e5ab 100644 (file)
@@ -1,3 +1,4 @@
+--$Id$\r
 CREATE OR REPLACE FUNCTION geocode_location(\r
     parsed NORM_ADDY,\r
     OUT ADDY NORM_ADDY,\r
index f76d95b114a45c20e86cefc58d377182e6ea180e..4f519bef936445c1723ffd0814fb9d2ee44481ae 100644 (file)
@@ -1,3 +1,4 @@
+--$Id$\r
 -- Note we are wrapping this in a function so we can make it immutable and those useable in an index\r
 -- It also allows us to shorten and possibly better cache the repetitive pattern in the code \r
 -- greatest(to_number(b.fromhn,''99999999''),to_number(b.tohn,''99999999'')) \r
@@ -9,7 +10,7 @@ $$ SELECT least(to_number($1,'99999999'),to_number($2,'99999999') )::integer;  $
   COST 1;\r
   \r
 -- Note we are wrapping this in a function so we can make it immutable (for some reason least and greatest aren't considered immutable)\r
--- and those useable in an index\r
+-- and thu useable in an index or cacheable for multiple calls\r
 CREATE OR REPLACE FUNCTION greatest_hn(fromhn varchar, tohn varchar)\r
   RETURNS integer AS\r
 $$ SELECT greatest(to_number($1,'99999999'),to_number($2,'99999999') )::integer;  $$\r
index b29aef1e3b904761553382bd4784003e279c8d5b..f06bc06efae9d6cd7df540dbebbc0cf3829ce0b7 100644 (file)
@@ -1,3 +1,4 @@
+--$Id$\r
 -- rate_attributes(dirpA, dirpB, streetNameA, streetNameB, streetTypeA,\r
 -- streetTypeB, dirsA, dirsB, locationA, locationB)\r
 -- Rates the street based on the given attributes.  The locations must be\r
index 6c8cbe5e052dd0138abb5076436eb4fbc8a4fb9c..fed3ff58ad2565cdbe331a44a0826d5b19378ef0 100644 (file)
@@ -1,3 +1,4 @@
+--$Id$\r
 SET search_path TO tiger, public;\r
 -- Create direction lookup table\r
 DROP TABLE IF EXISTS direction_lookup;\r