From: Sarah Hoffmann Date: Sun, 18 Nov 2018 16:00:12 +0000 (+0100) Subject: Always ignore continents for addresses X-Git-Tag: v3.3.0~69 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/fb796d14ec539fd4415a61732311dc4c98b87776 Always ignore continents for addresses Fixes #1236. --- diff --git a/sql/functions.sql b/sql/functions.sql index b07fe688..4a129210 100644 --- a/sql/functions.sql +++ b/sql/functions.sql @@ -869,15 +869,7 @@ BEGIN END IF; ELSEIF NEW.class = 'place' THEN - IF NEW.type in ('continent') THEN - NEW.rank_search := 2; - IF ST_GeometryType(NEW.geometry) IN ('ST_Polygon','ST_MultiPolygon') THEN - NEW.rank_address := NEW.rank_search; - ELSE - NEW.rank_address := 0; - END IF; - NEW.country_code := NULL; - ELSEIF NEW.type in ('sea') THEN + IF NEW.type in ('continent', 'sea') THEN NEW.rank_search := 2; NEW.rank_address := 0; NEW.country_code := NULL;