mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
make sure rank 28 to 30 places are assigned a centroid value
This commit is contained in:
@@ -5,7 +5,6 @@
|
|||||||
-- score integer
|
-- score integer
|
||||||
--);
|
--);
|
||||||
|
|
||||||
|
|
||||||
CREATE OR REPLACE FUNCTION getclasstypekey(c text, t text) RETURNS TEXT
|
CREATE OR REPLACE FUNCTION getclasstypekey(c text, t text) RETURNS TEXT
|
||||||
AS $$
|
AS $$
|
||||||
DECLARE
|
DECLARE
|
||||||
@@ -1389,6 +1388,9 @@ BEGIN
|
|||||||
|
|
||||||
--RAISE WARNING 'finding street for %', NEW;
|
--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;
|
NEW.parent_place_id := null;
|
||||||
|
|
||||||
-- to do that we have to find our parent road
|
-- to do that we have to find our parent road
|
||||||
|
|||||||
Reference in New Issue
Block a user