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.
// 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);
}
}
src/main.rs