I have some LAS Lidar point cloud files that are of version 1.4 of the LAS format that cause ParaView to crash. For the moment I have the ability to down-covert these files to version 1.3 (or 1.2) of the file format, and ParaView handles these. So I’m just reporting this as a bug because ParaView should do something other than crashing when encountering these files. Ideally it should handle the newer format, but at the very least just report that the format isn’t handled and use an earlier LAS format in the console window.
This is tested on Linux, MS-Windows and MacOS.
Here’s the relevant part of the crash output when running on Linux:
% paraview
[load 1.4 LAS file]
terminate called after throwing an instance of ‘std::out_of_range’
what(): version minor out of range
William,
Another possibility to read your las files is to compile ParaView with PDAL support. I believe liblas (which is used in our reader) is not maintained anymore. Unfortunately PDAL support is not yet built into the ParaView binary.
Thanks for checking back on this issue. And yes, the base issue is that ParaView is built with liblas, which doesn’t handle LAS v1.4, and does not-handle-it very ungracefully.
I would still hope however that ParaView wouldn’t crash when attempting to load LAS v1.4 files. I would still consider that a bug for ParaView.
I haven’t looked much at PDAL, so I don’t know whether ParaView could just use it as a drop-in replacement.
BTW, the two solutions I’ve tried are:
Use LAStools to convert .las files from version 1.4 to version 1.3
Use LAStools to convert .las files into ASCII format and then pipe the output through a script that makes legacy VTK files from it.
(I’ve since been playing with the eVTK Python library, so that might be another solution, but would also include converting files to ASCII first.)