Permalink
Browse files

make sure rank 28 to 30 places are assigned a centroid value

  • Loading branch information...
1 parent 96d3cb6 commit a293328f11ecfd9640cc35c530e5137780dd0f8f @twain47 committed Dec 18, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 sql/functions.sql
View
@@ -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

1 comment on commit a293328

@lonvia
Collaborator
lonvia commented on a293328 Jan 6, 2013

There are two more cases where no centroid is assigned: place=houses objects, and place nodes that have been linked. I don't think centroid is ever used for them. Should it be assigned anyway to be on the safe side?

Please sign in to comment.