Skip to content

fix(las): Pass correct params in LAZLoader.readData#3297

Merged
ibgreen merged 2 commits intomasterfrom
felix/fix-las-loader
Feb 21, 2026
Merged

fix(las): Pass correct params in LAZLoader.readData#3297
ibgreen merged 2 commits intomasterfrom
felix/fix-las-loader

Conversation

@felixpalmer
Copy link
Collaborator

Background

The point-cloud example was broken with the loaders 4.4 alpha package, see visgl/deck.gl#9972. This PR fixes it

Changes

  • Correct readData signature
  • Enable parsing per-point colors

@felixpalmer felixpalmer changed the title fix(las): Pass correct params in parse-las fix(las): Pass correct params in LAZLoader.readData Feb 20, 2026
Copy link
Collaborator

@charlieforward9 charlieforward9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so simple 🧑‍🍳

o.maxs = [bounds[0], bounds[2], bounds[4]];
o.mins = [bounds[1], bounds[3], bounds[5]];

const colorPointFormats = new Set([2, 3]);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think for LAS 1.4 there are more formats.
It might have been nice with constants or a comment, the numbers look a bit mysterious here.

@ibgreen ibgreen merged commit 040153c into master Feb 21, 2026
4 of 5 checks passed
@ibgreen ibgreen deleted the felix/fix-las-loader branch February 21, 2026 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants