From: Sarah Hoffmann Date: Tue, 9 Oct 2012 20:17:35 +0000 (+0200) Subject: disable postcode generation for Ireland X-Git-Tag: deploy~671 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/580ace2e8a3aebacc12b3533059c9031192fd244?ds=sidebyside;hp=-c disable postcode generation for Ireland See https://github.com/twain47/Nominatim/issues/29 for motivation. --- 580ace2e8a3aebacc12b3533059c9031192fd244 diff --git a/utils/setup.php b/utils/setup.php index 2542bd9e..0a0aa710 100755 --- a/utils/setup.php +++ b/utils/setup.php @@ -444,7 +444,7 @@ $sSQL .= "select 'P',nextval('seq_postcodes'),'place','postcode',postcode,calculated_country_code,"; $sSQL .= "ST_SetSRID(ST_Point(x,y),4326) as geometry from (select calculated_country_code,postcode,"; $sSQL .= "avg(st_x(st_centroid(geometry))) as x,avg(st_y(st_centroid(geometry))) as y "; - $sSQL .= "from placex where postcode is not null group by calculated_country_code,postcode) as x"; + $sSQL .= "from placex where postcode is not null and calculated_country_code not in ('ie') group by calculated_country_code,postcode) as x"; if (!pg_query($oDB->connection, $sSQL)) fail(pg_last_error($oDB->connection)); $sSQL = "insert into placex (osm_type,osm_id,class,type,postcode,calcuclated_country_code,geometry) ";