pub struct LasHeader {Show 14 fields
pub file_creation_year: u16,
pub file_creation_doy: u16,
pub version_major: u8,
pub version_minor: u8,
pub point_count: u64,
pub x_scale: f64,
pub y_scale: f64,
pub z_scale: f64,
pub x_offset: f64,
pub y_offset: f64,
pub z_offset: f64,
pub point_format: u8,
pub point_record_len: u16,
pub point_data_offset: u32,
}Expand description
Fixed-length (375-byte) header parsed from a LAS 1.4 binary file.
Fields§
§file_creation_year: u16File creation year (GPS week or calendar year).
file_creation_doy: u16File creation day of year.
version_major: u8LAS spec major version (should be 1).
version_minor: u8LAS spec minor version (should be 4 for LAS 1.4).
point_count: u64Number of point records.
x_scale: f64X scale factor.
y_scale: f64Y scale factor.
z_scale: f64Z scale factor.
x_offset: f64X offset.
y_offset: f64Y offset.
z_offset: f64Z offset.
point_format: u8Point data format ID (0–10).
point_record_len: u16Number of bytes per point record.
point_data_offset: u32Byte offset to the first point record.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LasHeader
impl RefUnwindSafe for LasHeader
impl Send for LasHeader
impl Sync for LasHeader
impl Unpin for LasHeader
impl UnsafeUnpin for LasHeader
impl UnwindSafe for LasHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.