]> git.openstreetmap.org Git - nominatim.git/commitdiff
disable postcode generation for Ireland
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 9 Oct 2012 20:17:35 +0000 (22:17 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 9 Oct 2012 20:23:35 +0000 (22:23 +0200)
See https://github.com/twain47/Nominatim/issues/29 for motivation.

utils/setup.php

index 2542bd9e1289831a20187d70987a214d854ed453..0a0aa7109e48650d8d631a88ab520db623fc0359 100755 (executable)
                $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) ";