From 59ff06e61d1d0fa3968829fd40262200ec85f575 Mon Sep 17 00:00:00 2001 From: "taylor.smock" Date: Wed, 20 Sep 2023 14:30:51 +0000 Subject: [PATCH] Fix #23149: Add line_arrangement to power supports presets (patch by gaben) git-svn-id: https://josm.openstreetmap.de/svn/trunk@18834 0c6e7542-c601-0410-84e7-c038aed88b3b --- resources/data/defaultpresets.xml | 23 ++++++++++++---------- resources/data/validator/deprecated.mapcss | 6 ++++-- resources/data/validator/geometry.mapcss | 1 + 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/resources/data/defaultpresets.xml b/resources/data/defaultpresets.xml index beec33d1514..f8c40799bd9 100644 --- a/resources/data/defaultpresets.xml +++ b/resources/data/defaultpresets.xml @@ -391,6 +391,11 @@ + + + + + @@ -464,8 +469,7 @@ - - + @@ -6020,6 +6024,9 @@ + + + @@ -6870,8 +6877,7 @@ - - + @@ -6885,8 +6891,7 @@ - - + @@ -6899,8 +6904,7 @@ - - + @@ -6960,8 +6964,7 @@ - - + diff --git a/resources/data/validator/deprecated.mapcss b/resources/data/validator/deprecated.mapcss index 48b0885f321..4b15ab87f86 100644 --- a/resources/data/validator/deprecated.mapcss +++ b/resources/data/validator/deprecated.mapcss @@ -1897,8 +1897,9 @@ way[/^is_in:/] { throwWarning: tr("{0} is deprecated for {1}", "{0.key}", "{1.tag}"); suggestAlternative: "design"; suggestAlternative: "structure"; - suggestAlternative: "line_management"; + suggestAlternative: "line_arrangement"; suggestAlternative: "line_attachment"; + suggestAlternative: "line_management"; set generic_power_tower_type_warning; group: tr("deprecated tagging"); } @@ -1957,8 +1958,9 @@ node[pole:type=transition] { } *[pole:type][power][power=~/^(tower|pole|insulator|portal|terminal)$/]!.power_pole_type_warning!.generic_power_tower_type_warning { throwWarning: tr("{0} is deprecated for {1}", "{0.key}", "{1.tag}"); - suggestAlternative: "line_management"; + suggestAlternative: "line_arrangement"; suggestAlternative: "line_attachment"; + suggestAlternative: "line_management"; group: tr("deprecated tagging"); } diff --git a/resources/data/validator/geometry.mapcss b/resources/data/validator/geometry.mapcss index 11ed07c472b..f4d583b84ad 100644 --- a/resources/data/validator/geometry.mapcss +++ b/resources/data/validator/geometry.mapcss @@ -127,6 +127,7 @@ way[voltage:primary], way[voltage:secondary], way[voltage:tertiary], way[transformer], +way[line_arrangement], way[line_attachment], way[line_management], way[entrance],