pub struct LASPoint {Show 29 fields
pub x: i32,
pub y: i32,
pub z: i32,
pub intensity: u16,
pub flags: u8,
pub return_number: u8,
pub number_of_returns: u8,
pub scan_direction_flag: bool,
pub edge_of_flight_line: bool,
pub classification: u8,
pub is_synthetic: bool,
pub is_key_point: bool,
pub is_withheld: bool,
pub scan_angle_rank: i8,
pub user_data: u8,
pub point_source_id: u16,
pub legacy_point_type: u8,
pub legacy_classification: u8,
pub legacy_return_number: u8,
pub legacy_number_of_returns: u8,
pub legacy_scan_angle_rank: i8,
pub scanner_channel: u8,
pub class_flag: u8,
pub scan_angle: i16,
pub gps_time_change: Option<u8>,
pub gps_time: Option<f64>,
pub rgba: Option<RGBA>,
pub wave_packet: Option<WavePacket>,
pub nir: Option<u16>,
}Expand description
A LAS Point Data Record. Compatible with Point Data Record Format 0 to 10
Fields§
§x: i32X coordinate
y: i32Y coordinate
z: i32Z coordinate
intensity: u16Intensity
flags: u8flags
return_number: u8Return Number
number_of_returns: u8Number of Returns
scan_direction_flag: boolScan Direction Flag
edge_of_flight_line: boolEdge of Flight Line
classification: u8Classification
is_synthetic: boolTrue if it’s synthetic
is_key_point: boolTrue if it’s key point
is_withheld: boolTrue if it’s withheld
scan_angle_rank: i8Overlap
user_data: u8User Data
point_source_id: u16Point Source ID
legacy_point_type: u8Legacy Point Type
legacy_classification: u8Legacy Classification
legacy_return_number: u8Legacy Return Number
legacy_number_of_returns: u8Legacy Number of Returns
legacy_scan_angle_rank: i8Legacy Scan Direction Flag
scanner_channel: u8Scanner Channel is used to indicate the channel (scanner head) of a multichannel system
class_flag: u8Classification flags are used to indicate special characteristics associated with the point.
scan_angle: i16The Scan Angle is a signed short that represents the rotational position of the emitted laser pulse with respect to the vertical of the coordinate system of the data. Down in the data coordinate system is the 0.0 position. Each increment represents 0.006 degrees.
gps_time_change: Option<u8>GPS Time Change
gps_time: Option<f64>GPS Time
rgba: Option<RGBA>RGB Color
wave_packet: Option<WavePacket>Wave Packet Data
nir: Option<u16>NIR: The NIR (near infrared) channel value associated with this point.
Implementations§
Source§impl LASPoint
impl LASPoint
Sourcepub fn inject_point10<T: Reader>(&mut self, reader: &T, offset: u64)
pub fn inject_point10<T: Reader>(&mut self, reader: &T, offset: u64)
Inject POINT10
Sourcepub fn inject_point14_temp<T: Reader>(&mut self, reader: &T, offset: u64)
pub fn inject_point14_temp<T: Reader>(&mut self, reader: &T, offset: u64)
Inject temporary POINT14
Sourcepub fn inject_point14<T: Reader>(
&mut self,
reader: &T,
offset: u64,
compressed: bool,
)
pub fn inject_point14<T: Reader>( &mut self, reader: &T, offset: u64, compressed: bool, )
Inject POINT14
Sourcepub fn set_flags2(&mut self, class: u8)
pub fn set_flags2(&mut self, class: u8)
Set Flags 2
Sourcepub fn set_classification(&mut self, class: u8)
pub fn set_classification(&mut self, class: u8)
Set Flags 2 14
Sourcepub fn class_flag(&self) -> ClassFlag
pub fn class_flag(&self) -> ClassFlag
get the class flag as an enum
Sourcepub fn class_type(&self, point14: bool) -> LASClassification
pub fn class_type(&self, point14: bool) -> LASClassification
class type
Sourcepub fn class_type14(&self) -> LASClassification14
pub fn class_type14(&self) -> LASClassification14
class type 14
Sourcepub fn set_flags3(&mut self, class: u8)
pub fn set_flags3(&mut self, class: u8)
Set Classification14
Sourcepub fn inject_gps_time<T: Reader>(&mut self, reader: &T, offset: u64)
pub fn inject_gps_time<T: Reader>(&mut self, reader: &T, offset: u64)
Inject GPSTIME11
Sourcepub fn inject_rgb<T: Reader>(&mut self, reader: &T, offset: u64)
pub fn inject_rgb<T: Reader>(&mut self, reader: &T, offset: u64)
Inject RGB12 & RGB14
Sourcepub fn inject_nir<T: Reader>(&mut self, reader: &T, offset: u64)
pub fn inject_nir<T: Reader>(&mut self, reader: &T, offset: u64)
Inject NIR
Sourcepub fn inject_rgb_nir<T: Reader>(&mut self, reader: &T, offset: u64)
pub fn inject_rgb_nir<T: Reader>(&mut self, reader: &T, offset: u64)
Inject 8 bytes (2 bytes each for R, G, B, and NIR)
Sourcepub fn inject_wave_packet<T: Reader>(&mut self, reader: &T, offset: u64)
pub fn inject_wave_packet<T: Reader>(&mut self, reader: &T, offset: u64)
Inject WAVEPACKET13 & WAVEPACKET14
Sourcepub fn to_vector_point(&self, header: &LASHeader) -> VectorPoint<LASPoint>
pub fn to_vector_point(&self, header: &LASHeader) -> VectorPoint<LASPoint>
To Vector Point
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LASPoint
impl<'de> Deserialize<'de> for LASPoint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl<T: Reader> FeatureReader<(), Map<String, ValueType>, LASPoint> for LASReader<T>
A feature reader trait with a callback-based approach
impl<T: Reader> FeatureReader<(), Map<String, ValueType>, LASPoint> for LASReader<T>
A feature reader trait with a callback-based approach
Source§type FeatureIterator<'a> = LASIterator<'a, T>
where
T: 'a
type FeatureIterator<'a> = LASIterator<'a, T> where T: 'a
Source§fn iter(&self) -> Self::FeatureIterator<'_>
fn iter(&self) -> Self::FeatureIterator<'_>
Source§impl<T: Reader + Debug> FeatureReader<(), Map<String, ValueType>, LASPoint> for LAZReader<T>
A feature reader trait with a callback-based approach
impl<T: Reader + Debug> FeatureReader<(), Map<String, ValueType>, LASPoint> for LAZReader<T>
A feature reader trait with a callback-based approach
Source§type FeatureIterator<'a> = LAZIterator<'a, T>
where
T: 'a
type FeatureIterator<'a> = LAZIterator<'a, T> where T: 'a
Source§fn iter(&self) -> Self::FeatureIterator<'_>
fn iter(&self) -> Self::FeatureIterator<'_>
Source§impl From<&Map<String, ValueType>> for LASPoint
Starting from a ref to an MValue, convert to a struct
impl From<&Map<String, ValueType>> for LASPoint
Starting from a ref to an MValue, convert to a struct
Source§impl From<&ValueType> for LASPoint
If this struct ref is nested into another struct, pull out the MValue and let
From handle
impl From<&ValueType> for LASPoint
If this struct ref is nested into another struct, pull out the MValue and let
From
Source§impl From<LASPoint> for ValueType
If this struct is nested into another struct, convert to a ValueType that’s nested
impl From<LASPoint> for ValueType
If this struct is nested into another struct, convert to a ValueType that’s nested
Source§impl From<ValueType> for LASPoint
If this struct is nested into another struct, pull out the MValue and let
From handle
impl From<ValueType> for LASPoint
If this struct is nested into another struct, pull out the MValue and let
From
impl MValueCompatible for LASPoint
Finally implement the MValueCompatible trait
impl StructuralPartialEq for LASPoint
Auto Trait Implementations§
impl Freeze for LASPoint
impl RefUnwindSafe for LASPoint
impl Send for LASPoint
impl Sync for LASPoint
impl Unpin for LASPoint
impl UnwindSafe for LASPoint
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().