You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cloud from numpy doesn't save las with shift. #218
We have upgraded to the latest release of CloudComPy (February 20, 2024 -> June 19, 2025) and we have trouble saving LAS/LAZ clouds created from numpy arrays - The shift is not used when saving. The same issue does not occur for bin/xyz.
Without respecting the shift, the points overflow on save, with LAS header offset of saved file as [0,0,0].
What we want is to save out the file using the shift that was set.
Hi,
Sorry for the late reply.
I can reproduce the problem. Thanks for the link to the CloudCompare forum. I think you're right, I'll try with the extended settings. Unfortunately, I don't see any way to set these parameters without development: I'll try to release a fix as soon as possible...
I think I'm experiencing the same problem. I do notice a difference in the output if I use setGlobalShift() or not. If I have a float64 ndarray points that looks like this:
Dragging the result into CloudCompare, this is what I see:
There's no "input" option, and the X and Y coords are the same and the numbers are strange (they should all be around 6782000 and -1994000). Viewing the file, it appears transformed in 3D.
Activity
prascle commentedon Nov 5, 2025
Hi,
Sorry for the late reply.
I can reproduce the problem. Thanks for the link to the CloudCompare forum. I think you're right, I'll try with the extended settings. Unfortunately, I don't see any way to set these parameters without development: I'll try to release a fix as soon as possible...
Regards,
Paul
bthetford commentedon Jan 13, 2026
I think I'm experiencing the same problem. I do notice a difference in the output if I use
setGlobalShift()or not. If I have a float64 ndarraypointsthat looks like this:And I create a
ccPointCloudinstance and write it to las like this:Dragging the result into CloudCompare, this is what I see:
There's no "input" option, and the X and Y coords are the same and the numbers are strange (they should all be around 6782000 and -1994000). Viewing the file, it appears transformed in 3D.