Skip to content

Commit

Permalink
feat: add replace for uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
pnodet committed Aug 21, 2023
1 parent 0160da8 commit c62a56b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ fn main() -> Result<()> {
let mut builder = las::Builder::from((1, 4));
builder.point_format.has_color = true;
builder.generating_software = String::from("e57_to_las");
builder.guid = match Uuid::parse_str(&pointcloud.guid.clone()).context("Invalid guid") {
builder.guid = match Uuid::parse_str(&pointcloud.guid.clone().replace("_", "-")) {
Ok(g) => g,
Err(e) => {
eprintln!("Error encountered: {}", e);
eprintln!("Invalid guid: {}", e);
return ();
}
};
Expand Down

0 comments on commit c62a56b

Please sign in to comment.