workers 1/2

This commit is contained in:
lovebird 2026-03-24 14:18:19 +01:00
parent c569ef821b
commit 3f8073452c
2 changed files with 8 additions and 0 deletions

View File

@ -77,6 +77,14 @@ int main(int argc, char *argv[]) {
CLI11_PARSE(app, argc, argv);
// Always ensure split_levels includes 0 (country-wide output file).
// User-provided --split-levels=1,2,3 means "also split into sub-regions",
// but the country-level file (boundary_ESP_1.json) must always be generated.
if (std::find(split_levels.begin(), split_levels.end(), 0) ==
split_levels.end()) {
split_levels.insert(split_levels.begin(), 0);
}
// Set PROJ_DATA so PROJ can find proj.db next to the exe
{
auto exe_dir = fs::path(argv[0]).parent_path();

Binary file not shown.