[][src]Struct laz::las::laszip::LasZipCompressor

pub struct LasZipCompressor<'a, W: Write + Send + 'a> { /* fields omitted */ }

Struct that handles the compression of the points into the given destination

Implementations

impl<'a, W: Write + Seek + Send + 'a> LasZipCompressor<'a, W>[src]

pub fn new(output: W, vlr: LazVlr) -> Result<Self>[src]

Creates a compressor using the provided vlr.

pub fn from_laz_items(output: W, items: Vec<LazItem>) -> Result<Self>[src]

Creates a new LasZipCompressor using the items provided,

If you wish to use a different chunk size see from_laz_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 compress_many(&mut self, input: &[u8]) -> Result<()>[src]

Compress all the points contained in the input slice

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]

Returns the vlr used by this compressor

pub fn into_inner(self) -> W[src]

pub fn get_mut(&mut self) -> &mut W[src]

pub fn get(&self) -> &W[src]

Auto Trait Implementations

impl<'a, W> !RefUnwindSafe for LasZipCompressor<'a, W>[src]

impl<'a, W> Send for LasZipCompressor<'a, W>[src]

impl<'a, W> !Sync for LasZipCompressor<'a, W>[src]

impl<'a, W> Unpin for LasZipCompressor<'a, W>[src]

impl<'a, W> !UnwindSafe for LasZipCompressor<'a, W>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.