Skip to content

Commit

Permalink
Update power presets following transformer tagging extension (#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
flacombe authored Jul 11, 2022
1 parent 57c0a7e commit de6fce4
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 18 deletions.
28 changes: 28 additions & 0 deletions data/deprecated.json
Original file line number Diff line number Diff line change
Expand Up @@ -1655,6 +1655,18 @@
"old": {"townhall:village": "yes"},
"replace": {"amenity": "townhall", "townhall:type": "village"}
},
{
"old": {"transformer": "auto"},
"replace": {"transformer": "yes", "windings:auto": "yes"}
},
{
"old": {"transformer": "minor_distribution"},
"replace": {"transformer": "distribution"}
},
{
"old": {"transformer": "traction"},
"replace": {"transformer": "main"}
},
{
"old": {"tunnel": "1"},
"replace": {"tunnel": "yes"}
Expand Down Expand Up @@ -1747,6 +1759,22 @@
"old": {"volcano": "extinct"},
"replace": {"volcano:status": "extinct"}
},
{
"old": {"voltage-high": "*", "transformer":"generator"},
"replace": {"voltage:secondary":"$1", "transformer":"generator"}
},
{
"old": {"voltage-low": "*", "transformer":"generator"},
"replace": {"voltage:primary":"$1", "transformer":"generator"}
},
{
"old": {"voltage-high": "*"},
"replace": {"voltage:primary":"$1"}
},
{
"old": {"voltage-low": "*"},
"replace": {"voltage:secondary":"$1"}
},
{
"old": {"wall_type": "noise_barrier"},
"replace": {"wall": "noise_barrier"}
Expand Down
15 changes: 7 additions & 8 deletions data/fields/transformer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@
"label": "Type",
"strings": {
"options": {
"distribution": "Distribution",
"generator": "Generator",
"converter": "Converter",
"traction": "Traction",
"auto": "Autotransformer",
"phase_angle_regulator": "Phase Angle Regulator",
"auxiliary": "Auxiliary",
"yes": "Unknown"
"main": "Forwards power",
"distribution": "Feeds final consumers, installed outside substations",
"generator": "Steps-up voltage in power plants",
"converter": "Feeds power converters",
"phase_angle_regulator": "Regulates phase angle",
"auxiliary": "Feeds internal systems in substations",
"yes": "Unknown role"
}
},
"autoSuggestions": false,
Expand Down
12 changes: 12 additions & 0 deletions data/fields/windings/auto.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"key": "windings:auto",
"type": "check",
"label": "Autotransformer",
"strings": {
"options": {
"undefined": "Assumed to be No",
"yes": "Yes",
"no": "No"
}
}
}
6 changes: 5 additions & 1 deletion data/preset_categories/utility.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"power/line",
"power/minor_line",
"man_made/pipeline",
"power/cable/underground"
"power/cable",
"power/generator",
"power/plant",
"power/switch",
"power/transformer"
]
}
6 changes: 2 additions & 4 deletions data/presets/_power.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@
"power": "*"
},
"fields": [
"power"
],
"moreFields": [
"material"
"power",
"operator"
],
"searchable": false,
"name": "Power Feature"
Expand Down
3 changes: 2 additions & 1 deletion data/presets/power/transformer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"voltage/secondary",
"voltage/tertiary",
"windings",
"windings/configuration"
"windings/configuration",
"windings/auto"
],
"geometry": [
"point",
Expand Down
19 changes: 15 additions & 4 deletions interim/source_strings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3339,20 +3339,20 @@ en:
# transformer=*
label: Type
options:
# transformer=auto
auto: Autotransformer
# transformer=auxiliary
auxiliary: Auxiliary
# transformer=compensator
compensator: Compensation feed
# transformer=converter
converter: Converter
# transformer=distribution
distribution: Distribution
# transformer=generator
generator: Generator
# transformer=main
main: Main
# transformer=phase_angle_regulator
phase_angle_regulator: Phase Angle Regulator
# transformer=traction
traction: Traction
# transformer=yes
'yes': Unknown
trees:
Expand Down Expand Up @@ -3590,6 +3590,17 @@ en:
# windings field placeholder
placeholder: 1, 2, 3...
terms: '[translate with synonyms or related terms for ''Windings'', separated by commas]'
windings/auto:
# windings:auto=*
label: Auto-transformer
options:
# windings:auto=no
'no': 'No'
# windings:auto=undefined
undefined: Assumed to be No
# windings:auto=yes
'yes': 'Yes'
terms: '[translate with synonyms or related terms for ''Auto-transformer'', separated by commas]'
windings/configuration:
# windings:configuration=*
label: Windings Configuration
Expand Down

0 comments on commit de6fce4

Please sign in to comment.