- Home /
Read binary PointCloud data (LAS or LAZ)
Is there a way to load Pointcloud data from an binary file format like las?
I am developping an android app using unity 5.6.3 which shows pointcloud data on an android device.
Currently i read XYZ Files, but it is very slow to read the txt files. so i want to load the points binary from the las format.
I have tried the liblas from liblas.org allready, but dont get it to work on Android device because dependencies (DllNotFoundException: liblas_c.dll etc.) are missing.
Is there a binary pointcloud data reader libary out there to read las or another binary file format for pointclouds in unity? Or how to read las files using unity?
"Reading point cloud" data always brings up the question: reading into what? Are you sure that the text format is the bottleneck? Or maybe your actual (post) processing of the data? $$anonymous$$aybe your text parsing is not optimised? (creating too much garbage?). Can you show your loading code? (maybe link it externally if it's too long?)
Like unit_nick said, you can always parse the binary format yourself. It seems to be well specified. Though it also seems to be quite complex. The point cloud data in the file seems to currently support up to 10 different record formats (starting on page 9).
Answer by rengaw83 · Oct 26, 2017 at 07:18 AM
I dont want to spend a lot of time to write a reader and implement the diffrent las specifications.
I have found the laszip.net, a stand-alone LASzip LiDAR compressor package to load las/laz files, wich works great for me.
My hope was, the large file is loaded much faster binary, but this does not. Only the file size is much smaller.
Thanks for the answers.
Answer by unit_nick · Sep 22, 2017 at 10:27 AM
To read las using unity you would use the standard binary file reader
Then decode the data from the las format (assuming I have found the correct las format)
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Binary Save on android issues 1 Answer
Camera.main.WorldToScreenPoint(touch.position). Help !!! 1 Answer
Problem reading sensor plugin, event won't trigger 2 Answers