Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HeightAboveGround: specify LiDAR output file #312

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand All @@ -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);
Expand Down Expand Up @@ -423,8 +423,6 @@ impl WhiteboxTool for HeightAboveGround {
}
}

let elapsed_time = get_formatted_elapsed_time(start);

if verbose {
println!("Writing output LAS file...");
}
Expand All @@ -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!(
"{}",
Expand Down