Skip to content

Commit

Permalink
Add num_floors_underground (#217)
Browse files Browse the repository at this point in the history
* Add numfloors_underground for buildings

* Create bad-floors-underground.yaml

* Update bad-floors-underground.yaml

* Update bad-floors-underground.yaml

* Add expected error

---------

Co-authored-by: Steven Moore <[email protected]>
Co-authored-by: Jennings Anderson <[email protected]>
  • Loading branch information
3 people authored Jul 3, 2024
1 parent e65f944 commit 05dc074
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
15 changes: 15 additions & 0 deletions counterexamples/buildings/bad-floors-underground.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
id: overture:buildings:footprint:1234
type: Feature
geometry:
type: Polygon
coordinates: [[[0, 0], [0, 1], [1, 1], [1, 0], [0, 0]]]
properties:
theme: buildings
type: building
update_time: "2023-02-22T23:55:01-08:00"
version: 1
num_floors_underground: -1
# Expected errors:
ext_expected_errors:
- "exclusiveMinimum: got -1, want 0"
1 change: 1 addition & 0 deletions examples/buildings/building-polygon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ properties:
update_time: "2023-06-06T10:30:00-08:00"
height: 21.34
num_floors: 4
num_floors_underground: 1
subtype: transportation
class: parking
is_underground: false
Expand Down
5 changes: 5 additions & 0 deletions schema/buildings/defs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ shapeContainer:
Number of above-ground floors of the building or part.
type: integer
exclusiveMinimum: 0
num_floors_underground:
description: >-
Number of below-ground floors of the building or part.
type: integer
exclusiveMinimum: 0
min_height:
description: >-
The height of the bottom part of building in meters. Used if a building or part of building starts above the ground level.
Expand Down

0 comments on commit 05dc074

Please sign in to comment.