Page 1 of 1

Can not load Las file

Posted: Wed May 08, 2019 2:44 am
by seanz
I already compiled lastools by vs2013, check INSTALL_QLAS_FWF_IO_PLUGIN and OPTION_PDAL_LAS in CMake and compile CC with LAS support, it works fine.

Now I want compile by vs2015, according to BUILD.md, If I want to compile CloudCompare with LAS/LAZ files support, download PDAL by OSGeo4W , set OPTION_PDAL_LAS=TRUE ,set the PDAL_DIR to the path containing PDALConfig.cmake will do.

compiled successfully, but can not read las file.


Should I compile lastools by vs2015 first? both INSTALL_QLAS_FWF_IO_PLUGIN and OPTION_PDAL_LAS are necessary to support LAS file?

Re: Can not load Las file

Posted: Wed May 08, 2019 9:12 am
by daniel
The QLAS_FWF plugin is only necessary to load LAS 1.3+ and 1.4 files with FWF data.

Otherwise the PDAL filter should give you the default LAS filter in the loading dialog. Do you get an error when you load LAS files, or is CC simply ignoring them?

Re: Can not load Las file

Posted: Thu May 09, 2019 6:35 am
by seanz
Get an error dialog, can not guess file format.

So I should work on PDAL?

Download PDAL by OSGeo4W when i was use vs2013, now transplant to vs2015. Generating Done, but compiled false.

Re: Can not load Las file

Posted: Fri May 10, 2019 1:16 pm
by daniel
What do you mean by "compiled false"? Do you have errors?

Re: Can not load Las file

Posted: Mon May 13, 2019 1:57 am
by seanz
I thought maybe the PDAL was damaged, so I get a new one by Conda, as the PDAL.io suggest.

The "can not guess file format" dialog was gone. CC can recognize las file, but still can not load it.

I follow the code in debug mode. It jump out when add information to Pdal::Option.

the break point location:
file: LASFilter.cpp
function name: loadFile
line: 894
version: github release v2.10.2

Re: Can not load Las file

Posted: Tue May 14, 2019 4:28 pm
by Jälv
There currently a problem when you compile CloudCompare in debug mode, with PDAL support.
(PDAL throws a 'bad conversion' exception)

Have you tried compiling in Release mode ?

Re: Can not load Las file

Posted: Wed May 15, 2019 5:14 am
by seanz
Release mode works fine, thanks a lot.