Skip to content

Commit

Permalink
Add CityJSON to TopoFeature transform example
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed Oct 18, 2024
1 parent aa27bd1 commit 56028d6
Show file tree
Hide file tree
Showing 6 changed files with 5,309 additions and 0 deletions.
11 changes: 11 additions & 0 deletions _sources/alignments/cityjson-transform/bblock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "CityJSON to TopoFeature transform",
"abstract": "Demonstration of a transform from CityJSON to TopoFeature",
"status": "under-development",
"dateTimeAddition": "2024-10-18T08:31:00Z",
"itemClass": "schema",
"register": "ogc",
"version": "0.1",
"dateOfLastChange": "2024-10-18",
"tags": ["3D", "geometry", "topology", "cityjson"]
}
10 changes: 10 additions & 0 deletions _sources/alignments/cityjson-transform/examples.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
examples:
- title: CityJSON Cube
snippets:
- language: json
ref: examples/cube.city.json

- title: CityJSON Two Buildings
snippets:
- language: json
ref: examples/twobuildings.city.json
140 changes: 140 additions & 0 deletions _sources/alignments/cityjson-transform/examples/cube.city.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
{
"CityObjects": {
"id-1": {
"geometry": [
{
"boundaries": [
[
[
[
0,
1,
2,
3
]
],
[
[
4,
5,
1,
0
]
],
[
[
5,
6,
2,
1
]
],
[
[
6,
7,
3,
2
]
],
[
[
7,
4,
0,
3
]
],
[
[
7,
6,
5,
4
]
]
]
],
"lod": "3.3",
"type": "Solid"
}
],
"attributes": {
"function": "something"
},
"type": "+GenericCityObject"
}
},
"type": "CityJSON",
"version": "1.1",
"vertices": [
[
0,
0,
1000
],
[
1000,
0,
1000
],
[
1000,
1000,
1000
],
[
0,
1000,
1000
],
[
0,
0,
0
],
[
1000,
0,
0
],
[
1000,
1000,
0
],
[
0,
1000,
0
]
],
"metadata": {
"geographicalExtent": [
0.0,
0.0,
0.0,
1.0,
1.0,
1.0
]
},
"transform": {
"scale": [
0.001,
0.001,
0.001
],
"translate": [
0.0,
0.0,
0.0
]
},
"extensions": {
"Generic": {
"url": "https://cityjson.org/extensions/download/generic.ext.json",
"version": "1.0"
}
}
}
Loading

0 comments on commit 56028d6

Please sign in to comment.