Skip to content
Laspy is a pythonic interface for reading/modifying/creating .LAS LIDAR files matching specification 1.0-1.4.
Python
Branch: master
Clone or download
kbevers more explicit msg if laszip executable was not found (#110)
more explicit msg if laszip executable was not found
Latest commit 52c9ad9 Aug 20, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc Added documentation example: How to make your own LAS file from scratch Oct 24, 2018
laspy more explicit msg if laszip executable was not found Aug 20, 2019
laspytest Implement LAZ read support based on the laz-perf library (#101) May 9, 2019
misc Move file validator to tools, add installation code, start adding log… Jul 23, 2012
.appveyor.yml Add AppVeyor CI (#103) May 9, 2019
.gitignore Implement LAZ read support based on the laz-perf library (#101) May 9, 2019
.travis.yml Implement LAZ read support based on the laz-perf library (#101) May 9, 2019
LICENSE.txt provide standard python library decoration for laspy May 26, 2012
MANIFEST.in Fix manifest Dec 9, 2015
README.rst
publish.sh
setup.py Updated README and setup script. Mar 30, 2017

README.rst

Laspy

Laspy is a python library for reading, modifying and creating LAS LiDAR files.

|Build Status|

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.6.0

  • Bug fix (#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

Version 1.5.0

  • Improved memory handling in base.FileManager (#48)
  • Introduced r- file mode, that only reads the header of as LAS file (#48)
  • LAS v. 1.4 bug fixes (#55)
  • Python 3 support (#62)
You can’t perform that action at this time.