Allow linking of ways to points (by name) as well as for relation admin areas

This commit is contained in:
Brian Quinion 2013-06-18 13:09:30 +01:00
parent 5e6fdc467c
commit 1fb5964b0e

View File

@ -1676,6 +1676,11 @@ BEGIN
END IF;
END IF;
END IF;
-- Name searches can be done for ways as well as relations
IF NEW.osm_type in ('W','R') AND NEW.rank_search < 26 THEN
-- not found one yet? how about doing a name search
IF NEW.centroid IS NULL AND (NEW.name->'name') is not null and make_standard_name(NEW.name->'name') != '' THEN