Skip to content
6 changes: 6 additions & 0 deletions data/fields/roof/height.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"key": "roof:height",
"minValue": 0,
"type": "number",
"label": "Roof Height (Meters)"
}
23 changes: 23 additions & 0 deletions data/fields/roof/shape.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"key": "roof:shape",
"type": "combo",
"label": "Roof Shape",
"strings": {
"options": {
"flat": "Flat",
"gabled": "Gabled",
"skillion": "Skillion",
"hipped": "Hipped",
"half-hipped": "Half-Hipped",
"mansard": "Mansard",
"gambrel": "Gambrel",
"pyramidal": "Pyramidal",
"cone": "Cone",
"dome": "Dome",
"onion": "Onion",
"round": "Round"
}
},
"autoSuggestions": true,
"customValues": false
}
2 changes: 2 additions & 0 deletions data/presets/building.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
"not/name",
"operator",
"roof/colour",
"roof/shape",
"roof/height",
Comment on lines +22 to +23
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to be fancy about it, you could extract those three fields into a template to share them, see https://github.com/openstreetmap/id-tagging-schema/tree/main/data/presets/%40templates

That will make it easier to not forget one later…

"smoking",
"wheelchair"
],
Expand Down
4 changes: 3 additions & 1 deletion data/presets/building/roof.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"gnis/feature_id-US",
"not/name",
"operator",
"roof/colour"
"roof/colour",
"roof/shape",
"roof/height"
],
"geometry": [
"area"
Expand Down
4 changes: 3 additions & 1 deletion data/presets/building_part.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"height",
"building/material",
"building/colour",
"roof/colour"
"roof/colour",
"roof/height",
"roof/shape"
],
"moreFields": [
"layer"
Expand Down