[−][src]Struct laz::las::laszip::LasZipCompressor
Struct that handles the compression of the points into the given destination
Methods
impl<'a, W: Write + Seek + 'a> LasZipCompressor<'a, W>
[src]
pub fn from_laz_items(
output: W,
items: Vec<LazItem>
) -> Result<Self, LasZipError>
[src]
output: W,
items: Vec<LazItem>
) -> Result<Self, LasZipError>
Creates a new LasZipCompressor using the items provided,
If you wish to use a different chunk size
see from_laz_vlr
pub fn from_laz_vlr(output: W, vlr: LazVlr) -> Result<Self, LasZipError>
[src]
Creates a compressor using the provided vlr.
pub fn compress_one(&mut self, input: &[u8]) -> Result<()>
[src]
Compress the point and write the compressed data to the destination given when the compressor was constructed
The data is written in the buffer is expected to be exactly as it would have been in a LAS File, that is:
- The fields/dimensions are in the same order than the LAS spec says
- The data in the buffer is in Little Endian order
pub fn done(&mut self) -> Result<()>
[src]
Must be called when you have compressed all your points
using the compress_one
method
pub fn vlr(&self) -> &LazVlr
[src]
pub fn into_stream(self) -> W
[src]
pub fn get_mut(&mut self) -> &mut W
[src]
Auto Trait Implementations
impl<'a, W> !RefUnwindSafe for LasZipCompressor<'a, W>
impl<'a, W> !Send for LasZipCompressor<'a, W>
impl<'a, W> !Sync for LasZipCompressor<'a, W>
impl<'a, W> Unpin for LasZipCompressor<'a, W>
impl<'a, W> !UnwindSafe for LasZipCompressor<'a, W>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,