-
Notifications
You must be signed in to change notification settings - Fork 7
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
Introduce building parts #51
Merged
Merged
Changes from 9 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
8dedbac
Initial building part definition
jwass 01a163b
adding building_part to documentation
jenningsanderson 70ef530
Update descriptions for buildings and parts fields
jwass e7bce01
renaming of building_part -> part
jenningsanderson de8bb51
one more place to update building part
jenningsanderson 3357d21
another spot to update
jenningsanderson 6bcdc41
Add building id to part example and make required
jwass 5dc4989
Added multipart OSM building example
skmoore ae3356d
Added parts for OSM multipart example
skmoore b55b8eb
converting to yaml
jenningsanderson 1ec5857
In building part: building -> buildingId
jwass 4e786cb
Added facadeMaterial, roofMaterial and facadeColor properties for bui…
LukaszMichalski-TomTom c581984
Merge pull request #80 from OvertureMaps/building-material-and-color
jwass File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
title: part | ||
--- | ||
|
||
import CodeBlock from '@theme/CodeBlock'; | ||
import JSONSchemaViewer from "@theme/JSONSchemaViewer"; | ||
import generateResolverOptions from "@site/src/components/shared-libs/generateResolverOptions" | ||
import yamlLoad from "@site/src/components/yamlLoad" | ||
import BuildingPartSchema from "!!raw-loader!@site/docs/_schema/buildings/part.yaml"; | ||
|
||
import BuildingPartExample from "!!raw-loader!@site/docs/_examples/buildings/building-part-basic.yaml"; | ||
|
||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
|
||
# Building Part | ||
|
||
<table> | ||
<tr> | ||
<th>Geometry Type</th> | ||
<td><code>Polygon</code> or <code>MultiPolygon</code></td> | ||
</tr> | ||
<tr> | ||
<th>Theme</th> | ||
<td><code>buildings</code></td> | ||
</tr> | ||
<tr> | ||
<th>Type</th> | ||
<td><code>part</code></td> | ||
</tr> | ||
</table> | ||
|
||
|
||
## Schema | ||
|
||
<Tabs> | ||
<TabItem value="browsable" label="Browsable" default> | ||
<JSONSchemaViewer schema={ yamlLoad(BuildingPartSchema) } resolverOptions={ generateResolverOptions({remote: true, yamlBasePath: '/buildings'})}/> | ||
</TabItem> | ||
<TabItem value="yaml" label="YAML" default> | ||
<CodeBlock language="jsx">{BuildingPartSchema}</CodeBlock> | ||
</TabItem> | ||
</Tabs> | ||
|
||
## Examples | ||
|
||
<Tabs> | ||
<TabItem value="1" label="Building Part" default> | ||
<CodeBlock language="json">{ JSON.stringify(yamlLoad(BuildingPartExample), null, 2) }</CodeBlock> | ||
</TabItem> | ||
</Tabs> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
id: overture:buildings:part:1234 | ||
type: Feature | ||
geometry: | ||
type: Polygon | ||
coordinates: [[ | ||
[-77.036873, 38.897804], | ||
[-77.036873, 38.897559], | ||
[-77.036260, 38.897559], | ||
[-77.036260, 38.897804], | ||
[-77.036873, 38.897804] | ||
]] | ||
properties: | ||
# Custom user properties. | ||
extFoo: I am a customer user property. | ||
extBar: Me too! | ||
# Overture properties | ||
theme: buildings | ||
type: part | ||
version: 1 | ||
level: 1 | ||
updateTime: "2023-06-06T10:30:00-08:00" | ||
building: abc123 | ||
height: 21.34 | ||
numFloors: 4 | ||
minHeight: 15.0 | ||
roofShape: dome | ||
roofOrientation: across | ||
roofDirection: 23.4 | ||
sources: | ||
- property: "" | ||
dataset: microsoftMLBuildings | ||
- property: /properties/height | ||
dataset: metaLidarExtractions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
https://www.openstreetmap.org/way/30407741 | ||
|
||
{ | ||
"id": "overture:buildings:building:1234", | ||
"type": "Feature", | ||
"geometry": { | ||
"type": "Polygon", | ||
"coordinates": [ | ||
[ | ||
[ | ||
-117.1710888, | ||
32.7238481 | ||
], | ||
[ | ||
-117.1711025, | ||
32.7239038 | ||
], | ||
[ | ||
-117.1711923, | ||
32.7238882 | ||
], | ||
[ | ||
-117.1712198, | ||
32.7240000 | ||
], | ||
[ | ||
-117.1712713, | ||
32.7242091 | ||
], | ||
[ | ||
-117.1706665, | ||
32.7243145 | ||
], | ||
[ | ||
-117.1705738, | ||
32.7239379 | ||
], | ||
[ | ||
-117.1707783, | ||
32.7239022 | ||
], | ||
[ | ||
-117.1710888, | ||
32.7238481 | ||
] | ||
] | ||
] | ||
}, | ||
"properties": { | ||
"extFoo": "I am a customer user property.", | ||
"extBar": "Me too!", | ||
"theme": "buildings", | ||
"type": "building", | ||
"version": 1, | ||
"level": 1, | ||
"updateTime": "2023-06-06T10:30:00-08:00", | ||
"names": { | ||
"common": [{ | ||
"value": "Valentina by Alta", | ||
"language": "local" | ||
}] | ||
}, | ||
"numFloors": 8, | ||
"class": "commercial", | ||
"sources": [{ | ||
"property": "", | ||
"dataset": "OpenStreetMap" | ||
}] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
{ | ||
"id": "overture:buildings:part:100", | ||
"type": "Feature", | ||
"geometry": { | ||
"type": "Polygon", | ||
"coordinates": [ | ||
[ | ||
[ | ||
-117.1707971, | ||
32.7240658 | ||
], | ||
[ | ||
-117.1712198, | ||
32.7240000 | ||
], | ||
[ | ||
-117.1712713, | ||
32.7242091 | ||
], | ||
[ | ||
-117.1706665, | ||
32.7243145 | ||
], | ||
[ | ||
-117.1705738, | ||
32.7239379 | ||
], | ||
[ | ||
-117.1707783, | ||
32.7239022 | ||
], | ||
[ | ||
-117.1707949, | ||
32.7240226 | ||
], | ||
[ | ||
-117.1707279, | ||
32.7240319 | ||
], | ||
[ | ||
-117.1707635, | ||
32.7241786 | ||
], | ||
[ | ||
-117.1708208, | ||
32.7241677 | ||
], | ||
[ | ||
-117.1707971, | ||
32.7240658 | ||
] | ||
] | ||
] | ||
}, | ||
"properties": { | ||
"building": "1234", | ||
"extFoo": "I am a customer user property.", | ||
"extBar": "Me too!", | ||
"theme": "buildings", | ||
"type": "part", | ||
"version": 1, | ||
"level": 1, | ||
"updateTime": "2023-06-06T10:30:00-08:00", | ||
"numFloors": 8, | ||
"sources": [{ | ||
"property": "", | ||
"dataset": "OpenStreetMap" | ||
}] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
{ | ||
"id": "overture:buildings:part:101", | ||
"type": "Feature", | ||
"geometry": { | ||
"type": "Polygon", | ||
"coordinates": [ | ||
[ | ||
[ | ||
-117.1712198, | ||
32.7240000 | ||
], | ||
[ | ||
-117.1711923, | ||
32.7238882 | ||
], | ||
[ | ||
-117.1711025, | ||
32.7239038 | ||
], | ||
[ | ||
-117.1710888, | ||
32.7238481 | ||
], | ||
[ | ||
-117.1707783, | ||
32.7239022 | ||
], | ||
[ | ||
-117.1707949, | ||
32.7240226 | ||
], | ||
[ | ||
-117.1707279, | ||
32.7240319 | ||
], | ||
[ | ||
-117.1707635, | ||
32.7241786 | ||
], | ||
[ | ||
-117.1708208, | ||
32.7241677 | ||
], | ||
[ | ||
-117.1707971, | ||
32.7240658 | ||
], | ||
[ | ||
-117.1712198, | ||
32.7240000 | ||
] | ||
] | ||
] | ||
}, | ||
"properties": { | ||
"building": "1234", | ||
"extFoo": "I am a customer user property.", | ||
"extBar": "Me too!", | ||
"theme": "buildings", | ||
"type": "part", | ||
"version": 1, | ||
"level": 1, | ||
"updateTime": "2023-06-06T10:30:00-08:00", | ||
"numFloors": 3, | ||
"sources": [{ | ||
"property": "", | ||
"dataset": "OpenStreetMap" | ||
}] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add hasParts set to True