]> git.openstreetmap.org Git - nominatim.git/commit
improve parenting for large areas with rank 30
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 5 Feb 2020 20:33:24 +0000 (21:33 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 19 Feb 2020 07:43:53 +0000 (08:43 +0100)
commit6189e0c79b8bbb2ed964b54b79de2b23d289f166
tree3e1676e34895768ef22ba98e339263d2dc92b016
parent6ed6a0d447c3f602763c8c742834539dd9c72145
improve parenting for large areas with rank 30

Instead of unconditionally parenting them to a street, the
larger areas get a parent area that contains them. To keep
things computationally light-weight, only use the centroid and
bbox to determine if an area is contained.

Requires renaming of parenting functions because renaming
a parameter of the function causes issues when updating the
function (it requires a manual delete, which I'd like to
avoid).
sql/functions/placex_triggers.sql