libLAS/PDAL

Any question about other libraries used in this project
lidargeek
Posts: 4
Joined: Mon Oct 22, 2012 12:15 am

libLAS/PDAL

Post by lidargeek »

Daniel,

I just wanted to comment on the use of libLAS. libLAS has recently been replaced with a new library called PDAL (Point Data Abstraction Library). PDAL is much more performant and driver based allowing for multiple format translation and filters.
daniel
Site Admin
Posts: 7330
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: libLAS/PDAL

Post by daniel »

Thanks for the information. I'll try to replace it asap!
Daniel, CloudCompare admin
Jälv
Posts: 28
Joined: Sun Jul 02, 2017 8:35 pm

Re: libLAS/PDAL

Post by Jälv »

Hello,

For the past few days/weeks, I've been working on replacing liblas with PDAL. (GitHub)
At the moment the las reader is on par with what was done with liblas (or almost).
The las writer is almost done I would say, it need more testing, so if anyone has some "tricky" files to test...

As PDAL supports more las version (1.3 and 1.4) it supports more point format.
I think it would be great feature to allow the user to choose the las version and point format when saving to a Las file.

I tried to keep the las filter's code as close as what was donne with Liblass however PDAL gives a higher level interface (for example saving extra fields into a las should be relatively easy with), so maybe some things could be changed/modernized.

I Tried to compile on windows but haven't managed to ...
I can compile "vanilla" CloudCompare, I can compile PDAL but when linking both, it fails.
However on Ubuntu it works fine.
daniel
Site Admin
Posts: 7330
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: libLAS/PDAL

Post by daniel »

That's great!

Have you tested it with LAS 1.4 files with FWF data? We actually have a LASlib based I/O filter (in addition to the liblas one) to be able to manage FWF data. Did you look at it? What are the capabilities of PDAL regarding FWF data?

Anyway, thanks for the contribution. I'll need to find some time to compile PDAL (on Windows) and I'll get back to you.
Daniel, CloudCompare admin
Jälv
Posts: 28
Joined: Sun Jul 02, 2017 8:35 pm

Re: libLAS/PDAL

Post by Jälv »

I didn't know about the LASlib based filter .
I fear PDAL won't be really useful then, as it does not currently support any point format that stores FWF
daniel
Site Admin
Posts: 7330
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: libLAS/PDAL

Post by daniel »

Ouch... do you know if the FWF support is something that is planned on their side?

We know have 3 choices instead of 2 (LASlib, libLAS and PDAL)! At least PDAL is the official replacement of libLAS so it would be logical to upgrade it. It's just a bit disappointing that we can't replace LASlib as well.

I still need to test your branch!
Daniel, CloudCompare admin
Jälv
Posts: 28
Joined: Sun Jul 02, 2017 8:35 pm

Re: libLAS/PDAL

Post by Jälv »

I have no idea if it's planned on their side, at least I haven't found clues telling me that it's planned.
Maybe I should ask them what's the status of waveform data support.

And why not try to implement it in PDAL for them if it's not something completely out of my league...
daniel
Site Admin
Posts: 7330
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: libLAS/PDAL

Post by daniel »

For now I miserably failed to compile PDAL on Windows :(
Daniel, CloudCompare admin
Jälv
Posts: 28
Joined: Sun Jul 02, 2017 8:35 pm

Re: libLAS/PDAL

Post by Jälv »

Strange, I built it easily using OSGeo4W64 to install the dependencies as recommended in the basic build steps

However, the libs in OSGeo4W must have been compiled with another version of msvc that I am using which might be the reason why I can compile PDAl but can't use it.
Last edited by Jälv on Mon Jul 10, 2017 2:03 pm, edited 1 time in total.
pjh172
Posts: 1
Joined: Tue Jul 11, 2017 3:37 pm

Re: libLAS/PDAL

Post by pjh172 »

This page on building PDAL on a Windows machine may be helpful: http://www.gadom.ski/2017/04/21/pdal-on-windows.html
Post Reply