Compile and Execute

In this section, we provide detailed instructions on how to compile and execute the buildinglod1 application. Follow these steps to ensure that the application is built correctly and runs with the desired input files.

1. Compilation

To compile buildinglod1
$ cmake --preset default (1)
$ cmake --build  --preset default (2)
1 This command configures the build system using CMake with the default preset. The preset includes all necessary configurations and dependencies required for the project.
2 This command builds the project using the configurations specified in the default preset. It compiles the source code into executable binaries.

2. Execution

The buildinglod1 application can be executed with different input files, depending on the data available and the desired output. Here are the instructions for executing the application with a GIS JSON file and a configuration JSON file.

2.1. Executing with a GIS JSON File

To execute buildinglod1 with a GIS JSON file
$ cd build/default
$ ./src/applications/ktirio_geom_app_building_lod1 --i gis.json --r

This command runs the buildinglod1 application with a GIS JSON file as input. The --i parameter specifies the input file (gis.json), and the --r parameter indicates that the application should automatically add the roof to the building models.

2.2. Executing with a Configuration JSON File

To execute buildinglod1 with a config JSON file
$ cd build/default
$ ./src/applications/ktirio_geom_app_building_lod1 --si config_create_building.json --r

This command runs the buildinglod1 application with a configuration JSON file as input. The --si parameter specifies the input file (config_create_building.json), and the --r parameter indicates that the application should automatically add the roof to the building models.

For more details about the parameters used in these commands, refer to the parameters documentation.