Native Python ASPRS LAS read/write library
Project description
Laspy
Laspy is a python library for reading, modifying and creating LAS LiDAR files.
Introduction
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.
Example
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.
Installation
Laspy can be installed either with pip
:
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.
Changelog
Version 1.7.0
- Fixed bug in point record format 5, 9 and 10 (
#105 <https://github.com/laspy/laspy/issues/105>
_) - Return explicit msg if laszip executable was not found (
#110 <https://github.com/laspy/laspy/issues/110>
_) - Supprt numpy 1.17 (
#122 <https://github.com/laspy/laspy/issues/122>
_)
Version 1.6.0
- Bug fix (
#92 <https://github.com/laspy/laspy/issues/92>
_) - Test creation of all valid custom dimension data types
- Modify handling of extra bytes to be char data instead of numeric byte data
Version 1.5.1
- Bug fixes (
#67 <https://github.com/laspy/laspy/pull/67>
,#75 <https://github.com/laspy/laspy/pull/75>
,b02b40900b5 <https://github.com/laspy/laspy/commit/b02b40900b5620972930cd0c201b4db1a6a69754>
_) - Allow usage of
laszip-cli
when working with LAZ files (#77 <https://github.com/laspy/laspy/pull/77>
_)
Version 1.5.0
- Improved memory handling in base.FileManager (
#48 <https://github.com/laspy/laspy/pull/48>
_) - Introduced
r-
file mode, that only reads the header of as LAS file (#48 <https://github.com/laspy/laspy/pull/48>
_) - LAS v. 1.4 bug fixes (
#55 <https://github.com/laspy/laspy/pull/55>
_) - Python 3 support (
#62 <https://github.com/laspy/laspy/pull/62>
_)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file laspy-1.7.0.tar.gz
.
File metadata
- Download URL: laspy-1.7.0.tar.gz
- Upload date:
- Size: 488.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0.post20200209 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2a354fe08a399949fce1a91019f70136ec396b1f88462e54f23b7a12ef2addf |
|
MD5 | 7d006a2ae673784a583da1ae97ceccae |
|
BLAKE2b-256 | d745c1ccd25e607b346a90f1fb89be3f7d482c7628a5770a38be4a15495f21cd |
File details
Details for the file laspy-1.7.0-py2.py3-none-any.whl
.
File metadata
- Download URL: laspy-1.7.0-py2.py3-none-any.whl
- Upload date:
- Size: 489.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0.post20200209 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f088a0d6fbfca3333870acb7997f54fc8fead4fdf43b75add9a4a4f839e538d |
|
MD5 | 3afc54c464ebd39f4016500923f9471c |
|
BLAKE2b-256 | 423cf614ef7efff0556275331f8cde6d8c2460493323ea2f6c2ac07102f02815 |