Skip to main content

Native Python ASPRS LAS read/write library

Project description

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
python setup.py install

You may need to run these commands as root/administrator.

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.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.5.0.tar.gz (484.4 kB view details)

Uploaded Source

Built Distributions

laspy-1.5.0.macosx-10.12-x86_64.tar.gz (555.2 kB view details)

Uploaded Source

laspy-1.5.0-py3-none-any.whl (489.0 kB view details)

Uploaded Python 3

laspy-1.5.0-py2.7.egg (352.0 kB view details)

Uploaded Source

laspy-1.5.0-py2-none-any.whl (489.0 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: laspy-1.5.0.tar.gz
  • Upload date:
  • Size: 484.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for laspy-1.5.0.tar.gz
Algorithm Hash digest
SHA256 329dc86a1296996a22d110ea8c155de8567089f5a9e5c7f02843725cc28cd3ab
MD5 9561d6d4cfb5ebfa8201151415d45085
BLAKE2b-256 d16ed462df05a750a16f6340d5412abd21b03a4326752d5cd11aca23685be75d

See more details on using hashes here.

File details

Details for the file laspy-1.5.0.macosx-10.12-x86_64.tar.gz.

File metadata

File hashes

Hashes for laspy-1.5.0.macosx-10.12-x86_64.tar.gz
Algorithm Hash digest
SHA256 04634151f34e385546cf17d0dd6af203443669f7c725acc0db37a9f9254d5230
MD5 e3eecdf132239ab58bc59f7ff5d1ffb7
BLAKE2b-256 baf98047850400523e8ce1498c7c444d47809005d7c70b97121a4237910260dc

See more details on using hashes here.

File details

Details for the file laspy-1.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for laspy-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d113305af90df9799911821ea17582150c10c5f079320c772c53063b39b311e
MD5 0b0eb8147590a668533345b8afa6c92c
BLAKE2b-256 a2f35fd51eaa9eac78da3abbe4ffd3b4bce1a434dcf484e040826a6122b673b1

See more details on using hashes here.

File details

Details for the file laspy-1.5.0-py2.7.egg.

File metadata

  • Download URL: laspy-1.5.0-py2.7.egg
  • Upload date:
  • Size: 352.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for laspy-1.5.0-py2.7.egg
Algorithm Hash digest
SHA256 fbc099e05bc5a276757a5910f0ddcb4f0a5384d4bbfd5c45409ed3a25cfe047d
MD5 9f5af698751d8cbdeea88730e4cc7944
BLAKE2b-256 adc9b08ff59ccef38a591166304f0db2a1cc26c8307a4656a9e8592fa8efb3a2

See more details on using hashes here.

File details

Details for the file laspy-1.5.0-py2-none-any.whl.

File metadata

File hashes

Hashes for laspy-1.5.0-py2-none-any.whl
Algorithm Hash digest
SHA256 64edc22fb88af29b56ac2a0777919541588b01689a6b7caf881673cecc87b7b2
MD5 142cfb14bb525254f59c7a26eb532fa5
BLAKE2b-256 33be5573c47b48bab1308702057db04e6958a05c6f78f3b0b17fd62b3de7e98f

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