cityjson / cjio

CityJSON/io: Python CLI to process and manipulate CityJSON files
MIT License
126 stars 32 forks source link

cjio returns broken glb when converting an "empty" cityjson #157

Open pcace opened 1 year ago

pcace commented 1 year ago

trying to convert an empty cityJson file to glb results in a not correct (completely empty) glb file. i'd expect the result still to be a valid glb file

this is an example cityjson: {"type":"CityJSON","version": "1.1","transform": {"scale": [1.0, 1.0, 1.0],"translate": [0.0, 0.0, 0.0]},"CityObjects": {},"vertices": []}

this would be the used command: cjio tmp/emptyCity.json export glb tmp/broken.glb

if i miss something please let me know!

Thanks a lot!