A tool that reconstructs a CityJSON file to a Linear Cell Complex. The LCC can then be either saved a three-dimensional combinatorial map file (.3map
) or as a CityJSON file with the LCC data stored according to the LCC Extension.
- CGAL: The LCC (and Combinatorial Map) package is used for the topological represntation.
- JSON for Modern C++: Used for JSON parsing (the required files are included in source code).
- CMake: To compile this code.
- Clone this repository.
- Install CGAL (instructions here).
- Install CMake.
- Build the software:
mkdir build
cd build
cmake ..
make
./cityjson2lcc /path/to/cityjson.json -n /path/to/new_files.json -p [number_of_decimal_digits]