From: Regina Obe Date: Sat, 27 Jun 2015 19:21:34 +0000 (+0000) Subject: document enhancements in address_standardizer X-Git-Tag: 2.2.0rc1~312 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f5132ad1a6cdb70ba5e5b156fe6096cb47d5319c;p=postgis document enhancements in address_standardizer git-svn-id: http://svn.osgeo.org/postgis/trunk@13726 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/NEWS b/NEWS index 3581b0bfe..fdf642a48 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,5 @@ PostGIS 2.2.0 -2014/MM/DD +2015/09/DD * Important / Breaking Changes * @@ -70,7 +70,10 @@ PostGIS 2.2.0 - Added GUC postgis.enable_outdb_rasters to enable access to rasters with out-db bands - #2387, address_standardizer extension as part of PostGIS - Stephen Woodbridge (imaptools.com), Walter Sinclair + Stephen Woodbridge (imaptools.com), Walter Sinclair, Regina Obe + - #2816, address_standardizer_data_us extension + provides reference lex,gaz,rules for address_standardizer + Stephen Woodbridge (imaptools.com), Walter Sinclair, Regina Obe - #2341, New mask parameter for ST_MapAlgebra - #2397, read encoding info automatically in shapefile loader - #2430, ST_ForceCurve diff --git a/doc/extras_address_standardizer.xml b/doc/extras_address_standardizer.xml index aad3389f5..0d010cfda 100644 --- a/doc/extras_address_standardizer.xml +++ b/doc/extras_address_standardizer.xml @@ -140,6 +140,7 @@ into includes in the future for easier maintenance. This section lists the PostgreSQL table formats used by the address_standardizer for normalizing addresses. Note that these tables do not need to be named the same as what is referenced here. You can have different lex, gaz, rules tables for each country for example or for your custom geocoder. The names of these tables get passed into the address standardizer functions. + The packaged extension address_standardizer_data_us contains data for standrdizing US addresses. Address Standardizer Tables @@ -575,15 +576,15 @@ SELECT house_num, name, suftype, city, country, state, unit FROM standardize_ad house_num | name | suftype | city | country | state | unit ----------+------------+---------+--------+---------+---------------+----------------- 1 | DEVONSHIRE | PLACE | BOSTON | USA | MASSACHUSETTS | # PENTHOUSE 301 - Using tables packaged with tiger geocoder. This example only works if you installec postgis_tiger_geocoder. - SELECT * FROM standardize_address('tiger.pagc_lex', - 'tiger.pagc_gaz', 'tiger.pagc_rules', 'One Devonshire Place, PH 301, Boston, MA 02109-1234'); - - Make easier to read we'll dump output using hstore extension CREATE EXTENSION hstore; you need to install - SELECT (each(hstore(p))).* + Using tables packaged with tiger geocoder. This example only works if you installec postgis_tiger_geocoder. + SELECT * FROM standardize_address('tiger.pagc_lex', + 'tiger.pagc_gaz', 'tiger.pagc_rules', 'One Devonshire Place, PH 301, Boston, MA 02109-1234'); + + Make easier to read we'll dump output using hstore extension CREATE EXTENSION hstore; you need to install + SELECT (each(hstore(p))).* FROM standardize_address('tiger.pagc_lex', 'tiger.pagc_gaz', 'tiger.pagc_rules', 'One Devonshire Place, PH 301, Boston, MA 02109-1234') As p; - key | value + key | value ------------+----------------- box | city | BOSTON @@ -601,7 +602,7 @@ SELECT house_num, name, suftype, city, country, state, unit FROM standardize_ad postcode | 02109 house_num | 1 ruralroute | -(16 rows) +(16 rows) diff --git a/doc/xsl/postgis_aggs_mm.xml.xsl b/doc/xsl/postgis_aggs_mm.xml.xsl index 6902a03e1..8506a17d5 100644 --- a/doc/xsl/postgis_aggs_mm.xml.xsl +++ b/doc/xsl/postgis_aggs_mm.xml.xsl @@ -458,7 +458,7 @@ postgis_sfcgal now can be installed as an extension using CREATE EXTENSION postgis_sfcgal; PostGIS 2.2.0: Tiger Geocoder upgraded to work with TIGER 2014 data. - + address_standardizer, address_standardizer_data_us extensions for standardizing address data refer to fpr details. Functions new in PostGIS 2.2