From a62c4f677e5c8f2795014db298b79c8833ebc787 Mon Sep 17 00:00:00 2001 From: Jennings Anderson Date: Fri, 6 Sep 2024 15:44:26 -0700 Subject: [PATCH] Add height to infrastructure type (towers, etc.) --- schema/base/defs.yaml | 11 ++++++++--- schema/base/infrastructure.yaml | 1 + 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/schema/base/defs.yaml b/schema/base/defs.yaml index 32d70a4e..3fde4562 100644 --- a/schema/base/defs.yaml +++ b/schema/base/defs.yaml @@ -4,13 +4,18 @@ title: Base layer properties description: Common schema definitions the base theme (primarily from OSM) "$defs": propertyDefinitions: - sourceTags: - description: Any attributes/tags from the original source data that should be passed through. - type: object elevation: description: Elevation above sea level (in meters) of the feature. type: integer maximum: 9000 + height: + description: >- + Height of the feature in meters. + type: number + exclusiveMinimum: 0 + sourceTags: + description: Any attributes/tags from the original source data that should be passed through. + type: object surface: description: Surface material, mostly from the OSM tag, with some normalization. type: string diff --git a/schema/base/infrastructure.yaml b/schema/base/infrastructure.yaml index 429f73c7..b9b9d0c7 100644 --- a/schema/base/infrastructure.yaml +++ b/schema/base/infrastructure.yaml @@ -181,4 +181,5 @@ properties: - watchtower - water_tower - weir + height: { "$ref": ./defs.yaml#/$defs/propertyDefinitions/height } surface: { "$ref": ./defs.yaml#/$defs/propertyDefinitions/surface }