Skip to main content

Native Python ASPRS LAS read/write library

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

laspy-1.6.0.tar.gz (485.5 kB view details)

Uploaded Source

Built Distribution

laspy-1.6.0-py2.py3-none-any.whl (488.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file laspy-1.6.0.tar.gz.

File metadata

  • Download URL: laspy-1.6.0.tar.gz
  • Upload date:
  • Size: 485.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.4

File hashes

Hashes for laspy-1.6.0.tar.gz
Algorithm Hash digest
SHA256 eb0a4abe2f3cf49e81cc6c87f31980b5e243f8d2911bb663eba856242526bd13
MD5 dc669e90e0fe73f45a76e9890becbc3c
BLAKE2b-256 029dff3fb69597e2ac1d01d459d1685f63b032cdf765bc594f034d8f570e71cf

See more details on using hashes here.

File details

Details for the file laspy-1.6.0-py2.py3-none-any.whl.

File metadata

  • Download URL: laspy-1.6.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 488.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.4

File hashes

Hashes for laspy-1.6.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8be5f7812431f625c1e82060cc09fe29b925eb0908fd9bda48a4f0f8c36e9574
MD5 294701d2327e16bd1ca2c2105ba33bf8
BLAKE2b-256 417fe8436338207a1efdcaa79147316fc019fd8bb92bc582eeffc53699c0aa63

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page