2021-04-23 17:12:29 +02:00
|
|
|
# IFCCityJSON
|
|
|
|
|
Converter for CityJSON files and IFC. Currently only supports one-way conversion from CityJSON to IFC.
|
2021-04-23 17:05:59 +02:00
|
|
|
|
|
|
|
|
-- WARNING --
|
|
|
|
|
|
2021-04-23 17:12:29 +02:00
|
|
|
IFCCityJSON only came into being 14/04/2021. Be prepared for lots of bugs, unfinished implementations and little to no documentation!
|
2021-04-23 17:05:59 +02:00
|
|
|
|
|
|
|
|
## Dependencies
|
2021-05-16 18:55:00 +02:00
|
|
|
- [IfcOpenShell](https://github.com/IfcOpenShell/IfcOpenShell) (also IfcOpenShell api is needed)
|
2021-04-23 17:05:59 +02:00
|
|
|
- [CJIO](https://github.com/cityjson/cjio)
|
|
|
|
|
|
2021-04-23 17:12:29 +02:00
|
|
|
## Usage of IFCCityJSON
|
2021-04-23 17:05:59 +02:00
|
|
|
Following command will execute a conversion from CityJSON to IFC
|
|
|
|
|
|
2021-04-23 17:12:29 +02:00
|
|
|
python ifccityjson.py [-i input file] [-o output file] [-n name of identification attribute]
|
2021-04-23 17:05:59 +02:00
|
|
|
|
|
|
|
|
The example file that could be used is example/3D_BAG_example.json
|
|
|
|
|
|
2021-04-23 17:12:29 +02:00
|
|
|
python ifccityjson.py -i example/3DBAG_example.json -o example/3DBAG_example.ifc -n identificatie
|
2021-04-23 17:05:59 +02:00
|
|
|
|
|
|
|
|
## Implemented geometries
|
2021-08-09 13:10:26 +02:00
|
|
|
- [x] "MultiPoint"
|
|
|
|
|
- [x] "MultiLineString"
|
2021-04-23 17:12:29 +02:00
|
|
|
- [x] "MultiSurface"
|
2021-05-16 18:55:00 +02:00
|
|
|
- [x] "CompositeSurface"
|
2021-04-23 17:12:29 +02:00
|
|
|
- [x] "Solid": exterior shell
|
|
|
|
|
- [ ] "Solid": interior shell
|
|
|
|
|
- [x] "MultiSolid"
|
|
|
|
|
- [x] "CompositeSolid"
|
2021-04-23 17:05:59 +02:00
|
|
|
- [ ] "GeometryInstance"
|
|
|
|
|
|
|
|
|
|
## TODO
|
|
|
|
|
- [x] CityJSON Attributes as IFC properties in 'CityJSON_attributes' pset
|
|
|
|
|
- [x] Implement georeferencing
|
2021-05-16 15:36:58 +02:00
|
|
|
- [x] Do not use template IFC for new IFC file, but make IFC file from scratch
|
2021-05-16 18:55:00 +02:00
|
|
|
- [x] Create mapping to IFC for all CityJSON object types & semantic surfaces
|
2021-08-09 13:10:26 +02:00
|
|
|
- [ ] Implement conversion of all CitYJSON geometries
|
|
|
|
|
- [ ] Implement conversion of all LODs instead of only the most detailed
|