Skip to content

Conversation

@fq
Copy link

@fq fq commented Jul 25, 2023

I have a LAZ file being rejected due to the bounding box check. I did verified the bounding box using lasinfo which shows no point is outside bounding box.

The bounding box check code did not compare xyz to the original min/max, instead it compared scaled ux/uy/uz to [0,1]. Due to the double decimal precision, a tiny error could be introduced and make ux>1 causing converter reject the LAZ file. Even the x is inside the original min/max, and no error reported by lasinfo.

It would make sense to check the bounding box to use min/max to avoid any decimal precision error introduced using the scaled values.

@gibtree
Copy link

gibtree commented Jun 25, 2025

I had the same issue and successfully used this code to get around it.

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.

2 participants