add testing for rank adaption while linking

This commit is contained in:
Sarah Hoffmann
2020-02-21 16:35:59 +01:00
parent 06fdfad89e
commit acd8ca2ebd
5 changed files with 36 additions and 13 deletions

View File

@@ -841,8 +841,10 @@ BEGIN
NEW.centroid := coalesce(location.centroid,
ST_Centroid(location.geometry));
-- Use the address rank of the linked place
NEW.rank_address := location.rank_address;
-- Use the address rank of the linked place, if it has one
IF location.rank_address between 5 and 25 THEN
NEW.rank_address := location.rank_address;
END IF;
-- merge in the label name
IF NOT location.name IS NULL THEN