Skip to content

Commit

Permalink
add fields for diameter & height of wind turbines, closes #241
Browse files Browse the repository at this point in the history
and also match features without `generator:method=wind_turbine` set, and suggest to add it
  • Loading branch information
tyrasd committed Nov 9, 2022
1 parent 32d2889 commit 89aaad1
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
6 changes: 6 additions & 0 deletions data/fields/height/hub.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"key": "height:hub",
"minValue": 0,
"type": "number",
"label": "Height of Hub (Meters)"
}
6 changes: 6 additions & 0 deletions data/fields/rotor/diameter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"key": "rotor:diameter",
"minValue": 0,
"type": "number",
"label": "Rotor Diameter (Meters)"
}
8 changes: 7 additions & 1 deletion data/presets/power/generator/source/wind.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,20 @@
"generator/output/electricity"
],
"moreFields": [
"{power/generator}"
"{power/generator}",
"height/hub",
"rotor/diameter"
],
"geometry": [
"point",
"vertex",
"area"
],
"tags": {
"power": "generator",
"generator:source": "wind"
},
"addTags": {
"power": "generator",
"generator:source": "wind",
"generator:method": "wind_turbine"
Expand Down
10 changes: 9 additions & 1 deletion interim/source_strings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1789,6 +1789,10 @@ en:
# height=*
label: Height (Meters)
terms: '[translate with synonyms or related terms for ''Height (Meters)'', separated by commas]'
height/hub:
# height:hub=*
label: Height of Hub (Meters)
terms: '[translate with synonyms or related terms for ''Height of Hub (Meters)'', separated by commas]'
height_building:
# height=*
label: Building Height (Meters)
Expand Down Expand Up @@ -3130,6 +3134,10 @@ en:
rooms:
# rooms=*
label: Rooms
rotor/diameter:
# rotor:diameter=*
label: Rotor Diameter (Meters)
terms: '[translate with synonyms or related terms for ''Rotor Diameter (Meters)'', separated by commas]'
roundtrip:
# roundtrip=*
label: Forms Loop
Expand Down Expand Up @@ -9320,7 +9328,7 @@ en:
# 'terms: fission,generator,nuclear,nuke,reactor'
terms: <translate with synonyms or related terms for 'Nuclear Reactor', separated by commas>
power/generator/source/wind:
# power=generator + generator:source=wind + generator:method=wind_turbine | Translate the primary name. Optionally, add equivalent synonyms on newlines in order of preference (press the Return key).
# power=generator + generator:source=wind | Translate the primary name. Optionally, add equivalent synonyms on newlines in order of preference (press the Return key).
name: Wind Turbine
# 'terms: generator,turbine,windmill,wind'
terms: <translate with synonyms or related terms for 'Wind Turbine', separated by commas>
Expand Down

0 comments on commit 89aaad1

Please sign in to comment.