MIERUNE / plateau-gis-converter

A proof of concept GUI and CLI tool for converting PLATEAU's 3D city models (CityGML) of Japan into various geospatial formats, including 3D Tiles, MVT, and GeoPackage.
https://mierune.github.io/plateau-gis-converter/
MIT License
51 stars 10 forks source link

transformer: トランスフォーム後に地物が存在しない場合のエラーハンドリング #638

Open satoshi7190 opened 1 month ago

satoshi7190 commented 1 month ago

src/main.rs

// If the directory for the output path does not exist, create it
      if let Some(output_parent_dir) = PathBuf::from(&args.output).parent() {
          if !output_parent_dir.exists() {
              if std::fs::create_dir_all(output_parent_dir).is_err() {
                  log::error!("Failed to create output directory: {:?}", output_parent_dir);
                  return ExitCode::FAILURE;
              };
              log::info!("Created output directory: {:?}", output_parent_dir);
          }
      }