]> git.openstreetmap.org Git - nominatim.git/commit
address ranks must not invert admin_level hierarchy
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 8 Apr 2020 08:04:49 +0000 (10:04 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 11 Apr 2020 18:56:30 +0000 (20:56 +0200)
commit80f7392fb1eff5c6b26e5f85b6873bb133576275
tree7f75098b04914d5b9e4918d7432e22f9cb2aa0fb
parent61535c9972e307350c1b91dcb776e210f37d258e
address ranks must not invert admin_level hierarchy

When inheriting an address rank from a linked place we
must be careful not to destroy the hierarchy established
through boundary admin_level. Therefore, before assigning
an address rank from a linked place, find the next higher
boundary in the admin_level hierarchy, look up its address
rank and then only use the address rank from the linked
place if it is higher.
sql/functions/placex_triggers.sql