From ddaf1b79d4c234254860ded13a7d9974fdd981dc Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Wed, 8 Jan 2020 23:53:23 +0100 Subject: [PATCH] remove special handling of rail Skip railway=rail in the style, so that installations can remove it if they wish. --- settings/import-extratags.style | 1 + settings/import-full.style | 1 + sql/functions/placex_triggers.sql | 2 -- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/settings/import-extratags.style b/settings/import-extratags.style index b2f3f9b9..49c55e57 100644 --- a/settings/import-extratags.style +++ b/settings/import-extratags.style @@ -98,6 +98,7 @@ "values" : { "level_crossing" : "skip", "no" : "skip", + "rail" : "extra", "" : "main,with_name" } }, diff --git a/settings/import-full.style b/settings/import-full.style index 9069c780..e876faea 100644 --- a/settings/import-full.style +++ b/settings/import-full.style @@ -98,6 +98,7 @@ "values" : { "level_crossing" : "skip", "no" : "skip", + "rail" : "skip", "" : "main,with_name" } }, diff --git a/sql/functions/placex_triggers.sql b/sql/functions/placex_triggers.sql index 953c5430..03a00805 100644 --- a/sql/functions/placex_triggers.sql +++ b/sql/functions/placex_triggers.sql @@ -62,8 +62,6 @@ BEGIN ELSEIF NEW.class = 'boundary' AND NEW.type = 'administrative' AND NEW.admin_level <= 4 AND NEW.osm_type = 'W' THEN return NULL; - ELSEIF NEW.class = 'railway' AND NEW.type in ('rail') THEN - return NULL; ELSEIF NEW.osm_type = 'N' AND NEW.class = 'highway' THEN NEW.rank_search = 30; NEW.rank_address = 0;