Skip to content

Conversion from CityJson to IFC

The capability exists (with issues) but the use case should be clarified/investigated. Not for production in the current state

Intro

Under the umbrella of IfcOpenShell, there is also the conversion from CityJSON to IFC. IFCCityJSON one way from CityJSON to IFC.

Documentation is available on IfcOpenShell Documentation / IfcCityJSON.

There is an example file with two schematic buildings in Getting started with CityJSON. The file is twobuildings.city.json

Installation

Installation steps from the ifccityjson doc

  1. cd /path/to/IfcOpenShell/src/ifccityjson
  2. pip install

Examples

Conversion of twobuildings.city.json

The conversion of that file works seamlessly

twobuildings.city.json2.ifc

Issue

The conversion of twobuildings.city.json produces an ifc file but ThatOpen can't open it and BIMcollab display has issues. Only OpenIFCViewer can handle it.

Issue

The conversion to IFC of the file generated by the conversion from IFC to CityJSON for Duplex_A_20110907_optimized stumble on errors.