Installing from PyPi
# To install with lazrs only pip install laspy[lazrs] # To install with laszip only pip install laspy[laszip] # To install with both pip install laspy[lazrs,laszip]
A conda build of laspy is available and maintained (but not by laspy)
conda install -c conda-forge laspy
laszip 1 are not available via conda, so to have LAZ support, you will
still need to install a LAZ backend via
Optional dependencies for LAZ support
laspy does not support LAZ (.laz) file by itself but can use one of several optional dependencies to support compressed LAZ files.
The 2 supported options are:
When encountering LAZ data, laspy will try to use one of the backend in the order described above. (Example: if lazrs is not installed or if it fails during, the process, laspy will try laszip)
lazrs is a Rust port of the laszip compression and decompression. Its main advantage is that it is able to compress/decompress using multiple threads which can greatly speed up things. However it does not supports points with waveforms.
laszip is the official and original LAZ implementation by Martin Isenburg. The advantage of the laszip backend is that its the official implementation, it supports points with waveform but does not offer multi-threaded compression/decompression.
Both the laszip bindings and lazrs are available on pip.
To install laspy with one of its supported backend use one of the following commands
laszippackage exists on conda-forge, but it only includes the C++ library, not the the Python bindings, which means that installing it won’t give you a LAZ capable laspy installation.