From a293328f11ecfd9640cc35c530e5137780dd0f8f Mon Sep 17 00:00:00 2001 From: Brian Quinion Date: Tue, 18 Dec 2012 13:37:48 +0000 Subject: [PATCH] make sure rank 28 to 30 places are assigned a centroid value --- sql/functions.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.45.2