Skip to main content

GitHub license PyPI version

simplaz

A Python package to read LAZ files (LAS too). Basically it's a wrapper around Rust las and it exposes the most useful methods.

It doesn't read in memory the whole file, so you can just iterate over each point sequentially without worrying about your RAM comsumption.

Only reading at this moment; writing is for later.

Installation

pip

To install the latest release: pip install simplaz

Development

  1. install Rust (v1.39+)
  2. install maturin
  3. maturin develop
  4. move to another folder, and import simplaz shouldn't return any error

Documentation

The pydoc can be found here.

Example

import simplaz
import numpy as np

ds = simplaz.read_file("/Users/hugo/data/ahn3/crop.laz")

header = ds.header
print("LAS v{}".format(header.version))
print("Point count: {}".format(header.number_of_points))

#-- using numpy functions
#-- define a specific numpy type
mypoint = np.dtype([('x','float64'), 
                    ('y', 'float64'), 
                    ('z', 'float64'), 
                    ('intensity', 'int16')]
                    ) 
pts = np.zeros((ds.header.number_of_points,), dtype=mypoint)

#-- iterate over all the points and store in numpy array only 
#-- the ground point (classification=2)
for (i, p) in enumerate(ds):
    if p.classification == 2:
        pts[i][0] = p.x
        pts[i][1] = p.y
        pts[i][2] = p.z
        pts[i][3] = p.classification
print (len(pts))

What is supported and what not?

Most of LAS v1.4 is supported, except:

  • v1.4 support for extra bits after each point

LAS classes

Classification description
0 Created, never classified
1 Unclassfied
2 Ground
3 Low Vegetation
4 Medium Vegetation
5 High Vegetation
6 Building
7 Low Point (noise)
8 Model Key-point (mass point)
9 Water
10 Reserved for ASPRS definition
11 Reserved for ASPRS definition
12 Overlap Points
13-31 Reserved for ASPRS definition

LAS Point format

This is well explained on this page.

Metadata

Release files for simplaz 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simplaz 0.3.0
File Size Uploaded Provenance
simplaz-0.3.0.tar.gz 13.7 kB Without provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for simplaz 0.3.0
File
simplaz-0.3.0-cp38-none-win_amd64.whl CPython 3.8 none Windows x86-64 Details
simplaz-0.3.0-cp38-cp38-manylinux1_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.5+ x86-64 Details
simplaz-0.3.0-cp38-cp38-macosx_10_7_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.7+ x86-64 Details
simplaz-0.3.0-cp37-none-win_amd64.whl CPython 3.7 none Windows x86-64 Details
simplaz-0.3.0-cp37-cp37m-manylinux1_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64 Details
simplaz-0.3.0-cp37-cp37m-macosx_10_7_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.7+ x86-64 Details
simplaz-0.3.0-cp36-none-win_amd64.whl CPython 3.6 none Windows x86-64 Details
simplaz-0.3.0-cp36-cp36m-manylinux1_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64 Details
simplaz-0.3.0-cp36-cp36m-macosx_10_7_x86_64.whl CPython 3.6 CPython 3.6 pymalloc macOS 10.7+ x86-64 Details

Total release size: 2.3 MB

Release files / simplaz-0.3.0.tar.gz

Download URL simplaz-0.3.0.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6a2a9a479888b438b302403b682f935bfc9a7ad2a211b1697fc18a2477921435
BLAKE2b-256 checksum
How to use checksums
1388538bf4536556df108b2ffd062129c054a06ccd9e4459e2ae7120512f7d21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.8.3

Release files / simplaz-0.3.0-cp38-none-win_amd64.whl

Download URL simplaz-0.3.0-cp38-none-win_amd64.whl
Size 242.4 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
cf220d60ea9825264c35c4926952fffdedd1ec4e9513798142d04a7f1c85278d
BLAKE2b-256 checksum
How to use checksums
faaf8295592d572843d5d7c7b0e8b37f56a7c4c992c76678bb437a3e7d80234a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.8.3

Release files / simplaz-0.3.0-cp38-cp38-manylinux1_x86_64.whl

Download URL simplaz-0.3.0-cp38-cp38-manylinux1_x86_64.whl
Size 282.6 kB
Tags CPython 3.8 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
52024aa7b962428fc94c642e5d81a118e20fb026dbe5115f656a155604fbb992
BLAKE2b-256 checksum
How to use checksums
d50318018ccb8f7379d0af3801a52949d6c44c8e6f3ab0cffbc89f67ecb3a26e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.8.3

Release files / simplaz-0.3.0-cp38-cp38-macosx_10_7_x86_64.whl

Download URL simplaz-0.3.0-cp38-cp38-macosx_10_7_x86_64.whl
Size 239.3 kB
Tags CPython 3.8 macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
c71bc4a9b9a7a096e7397e45e60dd092dfeef1131ae9a0eb6e96c923e5d385a8
BLAKE2b-256 checksum
How to use checksums
f17ce957974c6e666d429133166fd2ad7bb53a6f9fbf6cb91e7204f0f0f5af86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.8.3

Release files / simplaz-0.3.0-cp37-none-win_amd64.whl

Download URL simplaz-0.3.0-cp37-none-win_amd64.whl
Size 242.4 kB
Tags CPython 3.7 Windows x86-64
SHA-256 checksum
How to use checksums
d155f51a6356bd5c68cf1d8d40a1ab7ec259de52014e3c11f7816de098e1cdb5
BLAKE2b-256 checksum
How to use checksums
e19a3788ca25695ccd94d071cf6ea0b08c9070510486a86bd2548ada094ec38f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.8.3

Release files / simplaz-0.3.0-cp37-cp37m-manylinux1_x86_64.whl

Download URL simplaz-0.3.0-cp37-cp37m-manylinux1_x86_64.whl
Size 282.6 kB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
569bdd242bf243f3e26c110e700190009d4c7f4194b6f46b57b76265ee0c203e
BLAKE2b-256 checksum
How to use checksums
4a21fee03ef2b4f8d5005eb0971c9b2790ec2348eec44b388f7f6ca3a003a853
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.8.3

Release files / simplaz-0.3.0-cp37-cp37m-macosx_10_7_x86_64.whl

Download URL simplaz-0.3.0-cp37-cp37m-macosx_10_7_x86_64.whl
Size 239.3 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
ebcc88733c4917e08fb19207073834b1a649a6f95da2e077e8af0af0ee0137de
BLAKE2b-256 checksum
How to use checksums
22c7b8e5e47a6074f25c141399c70cb5aa5bee7b67197240f8564af2b3fa4d7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.8.3

Release files / simplaz-0.3.0-cp36-none-win_amd64.whl

Download URL simplaz-0.3.0-cp36-none-win_amd64.whl
Size 242.6 kB
Tags CPython 3.6 Windows x86-64
SHA-256 checksum
How to use checksums
50006783ee4ab3ce5968762bf931e33915ee381387f3174838f0a7e5ad408356
BLAKE2b-256 checksum
How to use checksums
772ad253634ce5fdb834edb3dcc288a28ee99f37ab2be3ffd53d80a61367baf7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.8.3

Release files / simplaz-0.3.0-cp36-cp36m-manylinux1_x86_64.whl

Download URL simplaz-0.3.0-cp36-cp36m-manylinux1_x86_64.whl
Size 282.9 kB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
397a224e0bbf28534b1b984d02a78936f4a8adf4a365fd75573adc3990cef8e3
BLAKE2b-256 checksum
How to use checksums
6e3d79b9886137edf9dc451acaeb38e7d023caa3a4fcb319ac6f33eeb54f87d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.8.3

Release files / simplaz-0.3.0-cp36-cp36m-macosx_10_7_x86_64.whl

Download URL simplaz-0.3.0-cp36-cp36m-macosx_10_7_x86_64.whl
Size 239.5 kB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
6630811311a3b1574b251aab4017a8458d53dc1cabd18aafc39d4bc81d5dcabe
BLAKE2b-256 checksum
How to use checksums
49a9863adc51a7d78d8ddfd32c451564659bc9d7afbc3d6c9ae86a30387747d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.8.3

Security for simplaz 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page