Native Python ASPRS LAS read/write library
Laspy is a python library for reading, modifying and creating LAS LiDAR files.
Laspy is a pythonic library for reading, modifying and writing LAS files. Support for LAZ is limited to reading LAS version 1.0-1.3 files. Laspy is compatible with Python 2.6+ and 3.5+.
Laspy includes a set of command line tools which can be used to do basic file operations like format translation and validation as well as comparing LAS files.
A simple example to show the basics of Laspy. Here we create an output file that only consists of terrain points from the input file:
from laspy.file import File import numpy as np inFile = File('/path/to/file.las', mode='r') I = inFile.Classification == 2 outFile = File('/path/to/output.las', mode='w', header=inFile.header) outFile.points = inFile.points[I] outFile.close()
API Documentation and tutorials are available at PythonHosted.
Laspy can be installed either with
pip install laspy
or by running the setup script included in the source distribution:
python setup.py build --user python setup.py install --user
Laspy is only dependent on numpy and should therefore work on Linux, OS X and Windows as long as a working installation of numpy is available.
- Fixed bug in point record format 5, 9 and 10 (
- Return explicit msg if laszip executable was not found (
- Supprt numpy 1.17 (
- Bug fix (
- Test creation of all valid custom dimension data types
- Modify handling of extra bytes to be char data instead of numeric byte data
- Bug fixes (
- Allow usage of
laszip-cliwhen working with LAZ files (
- Improved memory handling in base.FileManager (
r-file mode, that only reads the header of as LAS file (
- LAS v. 1.4 bug fixes (
- Python 3 support (
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size laspy-1.7.0-py2.py3-none-any.whl (489.7 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View|
|Filename, size laspy-1.7.0.tar.gz (488.0 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for laspy-1.7.0-py2.py3-none-any.whl