cjio
cjio copied to clipboard
CityJSON/io: Python CLI to process and manipulate CityJSON files
Tested by `test_vertex_indexer` in 08cbd05
When a Geometry is created and populated in LoD1, the geometries of the CityObjects in the CityJSON file contain the 'semantics' key and the values set to 'null'.
Works the same way as the semantics but at the moment the materials are ignored.
In order to overcome #32 , the output of validate() needs to be parsed when using the API.
a `Geometry` stores a *single* geometric representation of the `CityObject`, for example LoD1. Thus a single `CityObject` can contain multiple `Geometry` objects.
When creating an empty CityJSON and adding one CityObject to it, `print(CityJSON)` still returns and empty CityJSON, because it doesn't read the contents of the `.cityobjects`. ``` { "cityjson_version": "1.0",...
Expected this to work: ```python ground = geom.get_surfaces('groundsurface') ground Out[20]: {1: {'surface_idx': [[0, 4]], 'type': 'GroundSurface'}} geom.get_surface_boundaries(ground) Traceback (most recent call last): File "/home/balazs/.local/share/virtualenvs/cjio-xu4bWm9P/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3296, in run_code exec(code_obj, self.user_global_ns,...
Expected to get the boundary defs with get_surface_boundaries('roofsurface') but it expect the output of get_surfaces()... Should be more intuitive.
**Describe the bug** Unable to convert to obj file. **cjio version** ```bash $ cjio --version cjio v0.7.6; supports CityJSON v1.1 ``` **To Reproduce** ```bash $ cjio data/assets/52385628_bldg_6697_op_upgraded.json export obj data/assets/52385628_bldg_6697_op.obj...
**Is your feature request related to a problem? Please describe.** I'm trying to bring together meshes from terrain (Geotiff) and cities (CityJSON). To align them properly it would be great...