From: Regina Obe Date: Tue, 2 Apr 2013 15:07:12 +0000 (+0000) Subject: #2193: pretype (not ideal because norm_addy doesn't have slot for it so just stuff... X-Git-Tag: 2.1.0beta2~124 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=481e741ef46045a42f97511591fa30b8de6bba83;p=postgis #2193: pretype (not ideal because norm_addy doesn't have slot for it so just stuff in streettypeabbrev ) .norm_addy should ideally be changed. git-svn-id: http://svn.osgeo.org/postgis/trunk@11243 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/extras/tiger_geocoder/tiger_2011/pagc_normalize/pagc_normalize_address.sql b/extras/tiger_geocoder/tiger_2011/pagc_normalize/pagc_normalize_address.sql index 51d1dfd23..5826eb190 100644 --- a/extras/tiger_geocoder/tiger_2011/pagc_normalize/pagc_normalize_address.sql +++ b/extras/tiger_geocoder/tiger_2011/pagc_normalize/pagc_normalize_address.sql @@ -34,7 +34,8 @@ BEGIN result.streetName := trim(rec.name); result.location := trim(rec.city); result.stateAbbrev := trim(rec.state); - result.streettypeAbbrev := trim(rec.suftype); + --this should be broken out separately like pagc, but normalizer doesn't have a slot for it + result.streettypeAbbrev := trim(COALESCE(rec.suftype, rec.pretype)); result.preDirAbbrev := trim(rec.predir); result.postDirAbbrev := trim(rec.sufdir); result.internal := trim(rec.unit);