[−][src]Struct laz::las::laszip::LasZipCompressor
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]
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,
pub 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.
pub 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>,