pub struct LasZipDecompressor<'a, R: Read + Seek + 'a> { /* private fields */ }
Expand description

LasZip decompressor that decompresses points.

Supports both fixed-size and variable-size chunks.

Implementations§

Creates a new instance from a data source of compressed points and the LazVlr describing the compressed data.

The created decompressor will decompress all data

Creates a new decompressor, that will only decompress fields that are selected by the selection.

Decompress the next point and write the uncompressed data to the out buffer.

  • The buffer should have at least enough byte to store the decompressed data
  • The data is written in the buffer exactly as it would have been in a LAS File in Little Endian order,

Decompress as many points as the out slice can hold

Note

If the out slice contains more space than there are points the function will still decompress and thus and error will occur

Seeks to the point designed by the index

Important

Seeking in compressed data has a higher cost than non compressed data because the stream has to be moved to the start of the chunk and then we have to decompress points in the chunk until we reach the one we want.

Returns the vlr used.

Consumes the decompressor and returns the data source.

Returns a reference to the data source.

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.