Struct laz::las::selective::DecompressionSelection
source · pub struct DecompressionSelection(pub u32);
Expand description
Struct for selective decompression
Contains the information of which fields the user wants to decompress or not.
§Note
Selective decompression is not supported by all point formats. On point formats which do not support it, it will be ignored and all data will be decompressed.
Tuple Fields§
§0: u32
Implementations§
source§impl DecompressionSelection
impl DecompressionSelection
pub const ALL: u32 = 4_294_967_295u32
pub const XY_RETURNS_CHANNEL: u32 = 0u32
pub const Z: u32 = 1u32
pub const CLASSIFICATION: u32 = 2u32
pub const FLAGS: u32 = 4u32
pub const INTENSITY: u32 = 8u32
pub const SCAN_ANGLE: u32 = 16u32
pub const USER_DATA: u32 = 32u32
pub const POINT_SOURCE_ID: u32 = 64u32
pub const GPS_TIME: u32 = 128u32
pub const RGB: u32 = 256u32
pub const NIR: u32 = 512u32
pub const WAVEPACKET: u32 = 1_024u32
pub const ALL_EXTRA_BYTES: u32 = 2_048u32
sourcepub fn base() -> Self
pub fn base() -> Self
To decompress only the ‘base’ fields that is:
- x
- y
- return number
- number of returns
- scanner channel
pub fn xy_returns_channel() -> Self
pub fn decompress_z(self) -> Self
pub fn decompress_classification(self) -> Self
pub fn decompress_flags(self) -> Self
pub fn decompress_intensity(self) -> Self
pub fn decompress_scan_angle(self) -> Self
pub fn decompress_user_data(self) -> Self
pub fn decompress_point_source_id(self) -> Self
pub fn decompress_gps_time(self) -> Self
pub fn decompress_rgb(self) -> Self
pub fn decompress_nir(self) -> Self
pub fn decompress_wavepacket(self) -> Self
pub fn decompress_extra_bytes(self) -> Self
pub fn skip_z(self) -> Self
pub fn skip_classification(self) -> Self
pub fn skip_flags(self) -> Self
pub fn skip_intensity(self) -> Self
pub fn skip_scan_angle(self) -> Self
pub fn skip_user_data(self) -> Self
pub fn skip_point_source_id(self) -> Self
pub fn skip_gps_time(self) -> Self
pub fn skip_rgb(self) -> Self
pub fn skip_nir(self) -> Self
pub fn skip_wavepacket(self) -> Self
pub fn skip_extra_bytes(self) -> Self
pub fn should_decompress_z(self) -> bool
pub fn should_decompress_classification(self) -> bool
pub fn should_decompress_flags(self) -> bool
pub fn should_decompress_intensity(self) -> bool
pub fn should_decompress_scan_angle(self) -> bool
pub fn should_decompress_user_data(self) -> bool
pub fn should_decompress_point_source_id(self) -> bool
pub fn should_decompress_gps_time(self) -> bool
pub fn should_decompress_rgb(self) -> bool
pub fn should_decompress_nir(self) -> bool
pub fn should_decompress_wavepacket(self) -> bool
pub fn should_decompress_extra_bytes(self) -> bool
Trait Implementations§
source§impl Clone for DecompressionSelection
impl Clone for DecompressionSelection
source§fn clone(&self) -> DecompressionSelection
fn clone(&self) -> DecompressionSelection
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DecompressionSelection
impl Debug for DecompressionSelection
source§impl Ord for DecompressionSelection
impl Ord for DecompressionSelection
source§fn cmp(&self, other: &DecompressionSelection) -> Ordering
fn cmp(&self, other: &DecompressionSelection) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for DecompressionSelection
impl PartialEq for DecompressionSelection
source§fn eq(&self, other: &DecompressionSelection) -> bool
fn eq(&self, other: &DecompressionSelection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DecompressionSelection
impl PartialOrd for DecompressionSelection
source§fn partial_cmp(&self, other: &DecompressionSelection) -> Option<Ordering>
fn partial_cmp(&self, other: &DecompressionSelection) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for DecompressionSelection
impl Eq for DecompressionSelection
impl StructuralPartialEq for DecompressionSelection
Auto Trait Implementations§
impl Freeze for DecompressionSelection
impl RefUnwindSafe for DecompressionSelection
impl Send for DecompressionSelection
impl Sync for DecompressionSelection
impl Unpin for DecompressionSelection
impl UnwindSafe for DecompressionSelection
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