mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
make sure that linked places are within a boundary
This is a regression from previous code refactoring. Fixes #1684.
This commit is contained in:
@@ -226,7 +226,7 @@ BEGIN
|
|||||||
AND placex.rank_address = bnd.rank_address
|
AND placex.rank_address = bnd.rank_address
|
||||||
AND placex.osm_type = 'N'
|
AND placex.osm_type = 'N'
|
||||||
AND placex.rank_search < 26 -- needed to select the right index
|
AND placex.rank_search < 26 -- needed to select the right index
|
||||||
AND st_covers(geometry, placex.geometry)
|
AND _st_covers(bnd.geometry, placex.geometry)
|
||||||
LOOP
|
LOOP
|
||||||
--DEBUG: RAISE WARNING 'Found matching place node %', linkedPlacex.osm_id;
|
--DEBUG: RAISE WARNING 'Found matching place node %', linkedPlacex.osm_id;
|
||||||
RETURN linked_placex;
|
RETURN linked_placex;
|
||||||
|
|||||||
Reference in New Issue
Block a user