]> git.openstreetmap.org Git - nominatim.git/commitdiff
remove all unidentified large areas from addresses
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 8 Oct 2014 21:33:46 +0000 (23:33 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 8 Oct 2014 21:33:46 +0000 (23:33 +0200)
sql/functions.sql

index bc2d6a63fb18e2d335636c890608342fe04fc8b8..48ac80b54ac24aad0edeeb31f724b2858a0b7dbe 100644 (file)
@@ -1123,7 +1123,7 @@ BEGIN
     -- any feature more than 5 square miles is probably worth indexing
     ELSEIF ST_GeometryType(NEW.geometry) in ('ST_Polygon','ST_MultiPolygon') AND ST_Area(NEW.geometry) > 0.1 THEN
       NEW.rank_search := 22;
-      NEW.rank_address := NEW.rank_search;
+      NEW.rank_address := 0;
     ELSEIF NEW.class = 'highway' AND NEW.name is NULL AND 
            NEW.type in ('service','cycleway','path','footway','steps','bridleway','track','byway','motorway_link','primary_link','trunk_link','secondary_link','tertiary_link') THEN
 --      RAISE WARNING 'unnamed minor feature %',NEW.osm_id;