]> git.openstreetmap.org Git - nominatim.git/commitdiff
style: restrict man_made main tag to selected values
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 18 Mar 2024 20:26:41 +0000 (21:26 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 25 Mar 2024 10:46:39 +0000 (11:46 +0100)
settings/import-extratags.lua
settings/import-full.lua

index 830345c64e7d0749594a26a3db6fec22697f70de..d756cf3cbd2d1c106abc33eb605fa42b7c2f5792 100644 (file)
@@ -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'},
index 5b1ab060f1cbb437631472d92e278daddbc4ac80..f8b1e7a73375f82cfbf37b168673b8a89cb63e8a 100644 (file)
@@ -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'},