From 44922af20ef2673c0a111c5cba508658e11f36c4 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Mon, 18 Mar 2024 21:26:41 +0100 Subject: [PATCH] style: restrict man_made main tag to selected values --- settings/import-extratags.lua | 12 ++++++++++-- settings/import-full.lua | 12 ++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) 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'},