Skip to content

Commit

Permalink
Removing task force docs in favor of actual docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jenningsanderson committed Aug 13, 2024
1 parent 457f723 commit 2542b6e
Show file tree
Hide file tree
Showing 15 changed files with 75 additions and 2,288 deletions.
75 changes: 75 additions & 0 deletions docs/schema/concepts/by-theme/buildings/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
title: Buildings
draft: true
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import QueryBuilder from '@site/src/components/queryBuilder';
import OSMtoOvertureBuildingClass from '!!raw-loader!@site/src/queries/partials/osm_conversion_logic/building_class.sql';
import OSMtoOvertureBuildingSubtype from '!!raw-loader!@site/src/queries/partials/osm_conversion_logic/building_subtype.sql';

import OSMtoOvertureBuildingFacade from '!!raw-loader!@site/src/queries/partials/osm_conversion_logic/building_facade_material.sql';
import OSMtoOvertureBuildingRoofMaterial from '!!raw-loader!@site/src/queries/partials/osm_conversion_logic/building_roof_material.sql';
import OSMtoOvertureBuildingRoofShape from '!!raw-loader!@site/src/queries/partials/osm_conversion_logic/building_roof_shape.sql';

## Overview
The Overture buildings theme
Expand All @@ -13,6 +22,72 @@ The buildings theme has two feature types.

## Theme concepts

Overture conflates buildings from many open data sources to a consistent schema.

### OSM Tags to Overture Properties

<details>
<summary>How do I interpret these queries?</summary>

Each `WHEN` line in the `CASE` statement is a condition that defines both the **subtype** and the **class** of a feature. For example:
```sql
WHEN element_at(tags,'natural') IN ('desert') THEN ROW('desert', element_at(tags,'natural'))
```
Here, `element_at(tags, 'natural')` is accessing the value of the `natural` tag in OSM. So, when `natural=desert` is present, then the statement returns `ROW(subtype, class)`, in this case, **subtype**=`desert` and **class**=`desert`.

Since this particular statement is at the top of the list, it will take priority over other tags on the feature. If the same feature was also tagged as an airport gate, those tags would be ignored.
</details>


<Tabs>
<TabItem value="Subtype">
Subtypes


<QueryBuilder query={OSMtoOvertureBuildingSubtype}></QueryBuilder>
</TabItem>

<TabItem value="Class">
Classes
<details>
<summary>How do I interpret this query?</summary>
</details>

<QueryBuilder query={OSMtoOvertureBuildingClass}></QueryBuilder>
</TabItem>

<TabItem value="Facade">
Facade
<details>
<summary>How do I interpret this query?</summary>
</details>

<QueryBuilder query={OSMtoOvertureBuildingFacade}></QueryBuilder>
</TabItem>

<TabItem value="Roof Shape">
Roof Shape
<details>
<summary>How do I interpret this query?</summary>
</details>

<QueryBuilder query={OSMtoOvertureBuildingRoofShape}></QueryBuilder>
</TabItem>

<TabItem value="Roof Material">
Roof Material
<details>
<summary>How do I interpret this query?</summary>
</details>

<QueryBuilder query={OSMtoOvertureBuildingRoofMaterial}></QueryBuilder>
</TabItem>


</Tabs>



## Schema reference
- [Explore the schema for the building feature type](/schema/reference/buildings/building)
- [Explore the schema for the building_part feature type](/schema/reference/buildings/building_part)
37 changes: 0 additions & 37 deletions task-force-docs/base/README.md

This file was deleted.

Loading

0 comments on commit 2542b6e

Please sign in to comment.