generated from opengeospatial/bblock-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CityJSON to TopoFeature transform example
- Loading branch information
Showing
6 changed files
with
5,309 additions
and
0 deletions.
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,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"] | ||
} |
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,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
140
_sources/alignments/cityjson-transform/examples/cube.city.json
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,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" | ||
} | ||
} | ||
} |
Oops, something went wrong.