Skip to content

Commit

Permalink
fix: relax header string parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
gadomski committed Nov 6, 2024
1 parent 96ef6ed commit 2fd7544
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/header/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,19 +117,14 @@ impl Builder {
generating_software: raw_header
.generating_software
.as_ref()
.as_las_str()?
.to_string(),
.as_las_string_lossy(),
gps_time_type: raw_header.global_encoding.into(),
guid: Uuid::from_bytes(raw_header.guid),
has_synthetic_return_numbers: raw_header.global_encoding & 8 == 8,
has_wkt_crs: raw_header.global_encoding & 16 == 16,
padding: raw_header.padding,
point_format,
system_identifier: raw_header
.system_identifier
.as_ref()
.as_las_str()?
.to_string(),
system_identifier: raw_header.system_identifier.as_ref().as_las_string_lossy(),
transforms: Vector {
x: Transform {
scale: raw_header.x_scale_factor,
Expand Down

0 comments on commit 2fd7544

Please sign in to comment.