]> git.openstreetmap.org Git - nominatim.git/commit
linked centroids must always be within geometry
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 4 Mar 2020 08:59:57 +0000 (09:59 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 4 Mar 2020 08:59:57 +0000 (09:59 +0100)
commit6d431aebb77fb80ba51feb0596accbd39ace1125
tree417d468dfb64ac1b7f27ae12b65b4fe8f65ccb95
parenta00ea23847b37b7e953c556475a1946681e33fe0
linked centroids must always be within geometry

When using a linked place as centroid for a boundary, check
first that it is really within the area. If it is outside,
just keep the computed centroid because a centroid outside the
area just causes havok.

Fixes #1352.
sql/functions/placex_triggers.sql
test/bdd/db/import/linking.feature
test/bdd/steps/db_ops.py