]> git.openstreetmap.org Git - nominatim.git/commitdiff
Merge branch 'master' of github.com:twain47/Nominatim
authorBrian Quinion <openstreetmap@brian.quinion.co.uk>
Mon, 26 Mar 2012 22:57:24 +0000 (23:57 +0100)
committerBrian Quinion <openstreetmap@brian.quinion.co.uk>
Mon, 26 Mar 2012 22:57:24 +0000 (23:57 +0100)
1  2 
lib/lib.php
sql/functions.sql
utils/specialphrases.php
website/search.php

diff --cc lib/lib.php
Simple merge
index 9a6131524f44ff8b69fd753de3b74c6f769d07c7,a44fee9e9e78fb229694123fd45c6c9fb6635f6c..7e9f957b8e750dcd858e7e4be347105675844687
@@@ -1115,12 -1115,11 +1115,12 @@@ BEGI
      IF st_area(NEW.geometry) < 1 THEN
        -- mark items within the geometry for re-indexing
  --    RAISE WARNING 'placex poly insert: % % % %',NEW.osm_type,NEW.osm_id,NEW.class,NEW.type;
 --- work around bug in postgis
 +
 +      -- work around bug in postgis, this may have been fixed in 2.0.0 (see http://trac.osgeo.org/postgis/ticket/547)
        update placex set indexed_status = 2 where (ST_Contains(NEW.geometry, placex.geometry) OR ST_Intersects(NEW.geometry, placex.geometry)) 
-        AND rank_search > NEW.rank_search and indexed_status = 0 and ST_geometrytype(placex.geometry) = 'ST_Point';
+        AND rank_search > NEW.rank_search and indexed_status = 0 and ST_geometrytype(placex.geometry) = 'ST_Point' and (rank_search < 28 or name is not null);
        update placex set indexed_status = 2 where (ST_Contains(NEW.geometry, placex.geometry) OR ST_Intersects(NEW.geometry, placex.geometry)) 
-        AND rank_search > NEW.rank_search and indexed_status = 0 and ST_geometrytype(placex.geometry) != 'ST_Point';
+        AND rank_search > NEW.rank_search and indexed_status = 0 and ST_geometrytype(placex.geometry) != 'ST_Point' and (rank_search < 28 or name is not null);
      END IF;
    ELSE
      -- mark nearby items for re-indexing, where 'nearby' depends on the features rank_search and is a complete guess :(
Simple merge
Simple merge