The `laszip` library provides Python bindings for the LASzip C/C++ library, enabling efficient compression and decompression of LAZ (compressed LAS) point cloud files. It leverages `pybind11` for seamless integration. The current version is 0.3.0, and releases occur as needed for bug fixes and feature enhancements, typical for a pre-1.0 library.
pip install laszipVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to create a minimal LAZ file with a single point and then read it back using `laszip.LaszipWriter` and `laszip.LaszipReader`. It sets up a temporary file to ensure the example is runnable without pre-existing data.
Pin the library version in your `requirements.txt` (e.g., `laszip==0.3.0`) and review release notes/changelogs carefully before updating.
Prioritize `pip install laszip` to use pre-compiled wheels. If building from source, ensure you have a compatible C++ compiler (GCC, Clang, MSVC) and `pip install pybind11` (or `pip install 'pybind11[global]'`) and necessary system development libraries.
Process points in chunks or iterate through them one by one using `reader.read_point()` rather than attempting to store an entire dataset in a list or array. Leverage Python's generator patterns for efficiency.
No dependency data recorded yet.