for roads add all intersecting boundaries to address list

When roads cross boundaries, both administrative entities should
be added to the address list, so that both entities can be used
for searching. Also allows in a second step to better sort out
addresses of POIs on such roads.

Fixes #121.
This commit is contained in:
Sarah Hoffmann
2017-03-18 12:17:48 +01:00
parent ecee3828b3
commit b3186d07f5
4 changed files with 63 additions and 7 deletions

View File

@@ -1679,7 +1679,12 @@ BEGIN
-- added ourself as address already
address_havelevel[NEW.rank_address] := true;
-- RAISE WARNING ' getNearFeatures(%,''%'',%,''%'')',NEW.partition, place_centroid, search_maxrank, isin_tokens;
FOR location IN SELECT * from getNearFeatures(NEW.partition, place_centroid, search_maxrank, isin_tokens) LOOP
FOR location IN
SELECT * from getNearFeatures(NEW.partition,
CASE WHEN NEW.rank_search >= 26 THEN NEW.geometry
ELSE place_centroid END,
search_maxrank, isin_tokens)
LOOP
--RAISE WARNING ' AREA: %',location;