Skip to content

Add roof shape and roof height fields to building presets #1552

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Jun 6, 2025
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"
}
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
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