Can not load Las file

All about Windows versions
Post Reply
seanz
Posts: 6
Joined: Tue Apr 30, 2019 6:15 am

Can not load Las file

Post 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?
daniel
Site Admin
Posts: 7707
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Can not load Las file

Post 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?
Daniel, CloudCompare admin
seanz
Posts: 6
Joined: Tue Apr 30, 2019 6:15 am

Re: Can not load Las file

Post 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.
daniel
Site Admin
Posts: 7707
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Can not load Las file

Post by daniel »

What do you mean by "compiled false"? Do you have errors?
Daniel, CloudCompare admin
seanz
Posts: 6
Joined: Tue Apr 30, 2019 6:15 am

Re: Can not load Las file

Post 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
Jälv
Posts: 28
Joined: Sun Jul 02, 2017 8:35 pm

Re: Can not load Las file

Post 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 ?
seanz
Posts: 6
Joined: Tue Apr 30, 2019 6:15 am

Re: Can not load Las file

Post by seanz »

Release mode works fine, thanks a lot.
Post Reply