Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Native Python ASPRS LAS read/write library

Project Description

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
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.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)
Release History

Release History

This version
History Node

1.5.1

History Node

1.5.0

History Node

1.4.2

History Node

1.4.1

History Node

1.4.0

History Node

1.3.2

History Node

1.3.1

History Node

1.3.0

History Node

1.2.5

History Node

1.2.4

History Node

1.2.3

History Node

1.2.2

History Node

1.2.1

History Node

1.2.0

History Node

1.1.1

History Node

1.1.0

History Node

1.0.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
laspy-1.5.1-py2-none-any.whl (489.1 kB) Copy SHA256 Checksum SHA256 py2 Wheel Dec 5, 2017
laspy-1.5.1-py2.py3-none-any.whl (489.1 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Dec 5, 2017
laspy-1.5.1.tar.gz (487.7 kB) Copy SHA256 Checksum SHA256 Source Dec 5, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting