From: Brian Quinion Date: Tue, 18 Dec 2012 13:37:48 +0000 (+0000) Subject: make sure rank 28 to 30 places are assigned a centroid value X-Git-Tag: v2.2.0~148 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/a293328f11ecfd9640cc35c530e5137780dd0f8f?ds=inline make sure rank 28 to 30 places are assigned a centroid value --- diff --git a/sql/functions.sql b/sql/functions.sql index dfb64634..1af5fdbf 100644 --- a/sql/functions.sql +++ b/sql/functions.sql @@ -5,7 +5,6 @@ -- score integer --); - CREATE OR REPLACE FUNCTION getclasstypekey(c text, t text) RETURNS TEXT AS $$ DECLARE @@ -1389,6 +1388,9 @@ BEGIN --RAISE WARNING 'finding street for %', NEW; + -- We won't get a better centroid, besides these places are too small to care + NEW.centroid := place_centroid; + NEW.parent_place_id := null; -- to do that we have to find our parent road