add non-standard render position to tileset
This commit is contained in:
parent
6b24a59178
commit
d6bfe730eb
@ -28,6 +28,7 @@ class CesiumjsTileset:
|
||||
'version': '1.1',
|
||||
"tilesetVersion": "1.2.3"
|
||||
},
|
||||
'position': self._to_gps.transform(self._city.lower_corner[0], self._city.lower_corner[1]),
|
||||
'schema': {
|
||||
'id': "building",
|
||||
'classes': {
|
||||
@ -108,6 +109,7 @@ class CesiumjsTileset:
|
||||
coordinates = self._ground_coordinates(surface.solid_polygon.coordinates)
|
||||
lower_corner = [min([c[0] for c in coordinates]), min([c[1] for c in coordinates]), 0]
|
||||
upper_corner = [max([c[0] for c in coordinates]), max([c[1] for c in coordinates]), building.max_height]
|
||||
|
||||
tile = {
|
||||
'boundingVolume': {
|
||||
'box': CesiumjsTileset._box_values(upper_corner, lower_corner)
|
||||
|
Loading…
Reference in New Issue
Block a user