
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
simplaz
Advanced tools
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.
To install the latest release: pip install simplaz
maturin developimport simplaz shouldn't return any errorThe pydoc can be found here.
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))
Most of LAS v1.4 is supported, except:
| 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 |
This is well explained on this page.
FAQs
A simple Python package to read LAZ files (LAS too).
We found that simplaz demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.