From 2e34023d42abdda2fcc170506ff88f5eccd9b927 Mon Sep 17 00:00:00 2001 From: jfbourdon Date: Fri, 6 Jan 2023 14:06:05 -0500 Subject: [PATCH 1/2] specify LAS output file --- .../src/tools/lidar_analysis/height_above_ground.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/whitebox-tools-app/src/tools/lidar_analysis/height_above_ground.rs b/whitebox-tools-app/src/tools/lidar_analysis/height_above_ground.rs index 1545b54ce..5a3aa9e16 100755 --- a/whitebox-tools-app/src/tools/lidar_analysis/height_above_ground.rs +++ b/whitebox-tools-app/src/tools/lidar_analysis/height_above_ground.rs @@ -62,8 +62,8 @@ impl HeightAboveGround { parameters.push(ToolParameter { name: "Output File".to_owned(), flags: vec!["-o".to_owned(), "--output".to_owned()], - description: "Output raster file (including extension).".to_owned(), - parameter_type: ParameterType::NewFile(ParameterFileType::Raster), + description: "Output LiDAR file (including extension).".to_owned(), + parameter_type: ParameterType::NewFile(ParameterFileType::Lidar), default_value: None, optional: true, }); @@ -82,7 +82,7 @@ impl HeightAboveGround { short_exe += ".exe"; } let usage = format!( - ">>.*{0} -r={1} -v --wd=\"*path*to*data*\" -i=file.las -o=outfile.tif", + ">>.*{0} -r={1} -v --wd=\"*path*to*data*\" -i=file.las -o=outfile.las", short_exe, name ) .replace("*", &sep); From 7d795f4f734695a4d6a0ad0c5a9e629c0e956952 Mon Sep 17 00:00:00 2001 From: jfbourdon Date: Fri, 6 Jan 2023 14:11:04 -0500 Subject: [PATCH 2/2] includes writing in I/O time --- .../src/tools/lidar_analysis/height_above_ground.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/whitebox-tools-app/src/tools/lidar_analysis/height_above_ground.rs b/whitebox-tools-app/src/tools/lidar_analysis/height_above_ground.rs index 5a3aa9e16..4e5ebd114 100755 --- a/whitebox-tools-app/src/tools/lidar_analysis/height_above_ground.rs +++ b/whitebox-tools-app/src/tools/lidar_analysis/height_above_ground.rs @@ -423,8 +423,6 @@ impl WhiteboxTool for HeightAboveGround { } } - let elapsed_time = get_formatted_elapsed_time(start); - if verbose { println!("Writing output LAS file..."); } @@ -437,6 +435,8 @@ impl WhiteboxTool for HeightAboveGround { Err(e) => println!("error while writing: {:?}", e), }; + let elapsed_time = get_formatted_elapsed_time(start); + if verbose { println!( "{}",