From: Sarah Hoffmann Date: Mon, 18 Mar 2024 20:26:41 +0000 (+0100) Subject: style: restrict man_made main tag to selected values X-Git-Tag: deploy~4^2~2^2 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/44922af20ef2673c0a111c5cba508658e11f36c4 style: restrict man_made main tag to selected values --- diff --git a/settings/import-extratags.lua b/settings/import-extratags.lua index 830345c6..d756cf3c 100644 --- a/settings/import-extratags.lua +++ b/settings/import-extratags.lua @@ -23,7 +23,16 @@ flex.set_main_tags{ secondary_link = 'named', tertiary_link = 'named'}, railway = 'named', - man_made = 'always', + man_made = {'none', + pier = 'always', + tower = 'always', + bridge = 'always', + works = 'named', + water_tower = 'always', + dyke = 'named', + lighthouse = 'always', + watermill = 'always', + tunnel = 'always'}, aerialway = 'always', boundary = {'named', postal_code = 'always'}, @@ -59,7 +68,6 @@ flex.set_prefilters{delete_keys = {'note', 'note:*', 'source', '*source', 'attri 'noexit', 'crossing', 'give_way', 'stop'}, railway = {'level_crossing', 'no', 'rail', 'switch', 'abandoned', 'signal', 'buffer_stop', 'razed'}, - man_made = {'survey_point', 'cutline'}, aerialway = {'pylon', 'no'}, aeroway = {'no'}, amenity = {'no', 'parking_space', 'parking_entrance'}, diff --git a/settings/import-full.lua b/settings/import-full.lua index 5b1ab060..f8b1e7a7 100644 --- a/settings/import-full.lua +++ b/settings/import-full.lua @@ -23,7 +23,16 @@ flex.set_main_tags{ secondary_link = 'named', tertiary_link = 'named'}, railway = 'named', - man_made = 'always', + man_made = {'none', + pier = 'always', + tower = 'always', + bridge = 'always', + works = 'named', + water_tower = 'always', + dyke = 'named', + lighthouse = 'always', + watermill = 'always', + tunnel = 'always'}, aerialway = 'always', boundary = {'named', postal_code = 'always'}, @@ -63,7 +72,6 @@ flex.set_prefilters{delete_keys = {'note', 'note:*', 'source', '*source', 'attri 'noexit', 'crossing', 'give_way', 'stop'}, railway = {'level_crossing', 'no', 'rail', 'switch', 'abandoned', 'signal', 'buffer_stop', 'razed'}, - man_made = {'survey_point', 'cutline'}, aerialway = {'pylon', 'no'}, aeroway = {'no'}, amenity = {'no', 'parking_space', 'parking_entrance'},