Page 1 of 1

LAS format for export command line

Posted: Wed Sep 18, 2019 6:46 am
by thierry
Hello,

I manage to use the command line with succes but the export in LAS format.

I was unable to read the export result.

Here's the error message : "PDAL exeption 'readers.las:File signature is not 'LASF', is this an LAS/LAZ file?"

And here's my command line :

CloudCompare -O "C:\3Dwork\test1.las" -FILTER_SF 200 MAX -SAVE_CLOUDS FILE "C:\3Dwork\station001_nett.laz" -LOG_FILE "C:\3Dwork\CC_log.txt"
pause

Any ideas ?

Best regards

Re: LAS format for export command line

Posted: Wed Sep 18, 2019 8:26 pm
by daniel
I believe in addition to the filename, you have to explicitly to set the export format to LAS or LAZ (with -C_EXPORT_FM).

Otherwise the default format remains BIN by default.

Re: LAS format for export command line

Posted: Thu Sep 19, 2019 7:46 am
by thierry
Hello Daniel,
thanks for your support and your amazing work, this software is very powerful.

I manage to find my way between the command line but LAS exports won't be read, even when the export default format is set on LAS.

I got error message when loading the cloud on CC :
"PDAL exception 'readers.las:Invalid extra dimension specified: 'Number of neighbors (r=0) [appro=double'. Need <dimension>=<type>."

While the same file export as E57 will work. Any ideas ?

Here's my command line :

cd C:\Program Files\CloudCompare
CloudCompare -LOG_FILE "C:\3Dwork\CloudCompare\CC_log.txt" -AUTO_SAVE OFF -O -GLOBAL_SHIFT AUTO "C:\3Dwork\CloudCompare
\interf_n1__Station001_nett.las" -APPROX_DENSITY -TYPE SURFACE -C_EXPORT_FMT LAS -SAVE_CLOUDS FILE "C:\3Dwork\CloudCompare\test_approx.laz" -C_EXPORT_FMT E57 -SAVE_CLOUDS FILE "C:\3Dwork\CloudCompare\test_approx.e57"
pause

Best regards

Re: LAS format for export command line

Posted: Thu Sep 19, 2019 6:29 pm
by daniel
Don't you have to set LAZ as output extension instead of LAS? (not sure about this one ;)

Re: LAS format for export command line

Posted: Fri Sep 20, 2019 8:02 am
by thierry
Nope,

neither using LAZ as an oupout extension nor using LAS + *.las file will work :-/

LAZ isn't an export format and the las file give the same error as above

Re: LAS format for export command line

Posted: Fri Sep 20, 2019 7:55 pm
by daniel
Yes, and as the issue seems to be with the extra fields (= a scalar field that is not one of the "standard" LAS fields and which is saved separately), then something must be wrongly set.

Can you maybe export the cloud as a bin file and then open it with the GUI version, try to save it as LAS, and see if you have the same issue?

If yes, can you send me the BIN file? (admin [at] cloudcompare.org)?

Re: LAS format for export command line

Posted: Tue Sep 24, 2019 6:56 pm
by thierry
Sorry can't send you this file. maybe on another case later. Thank you for your answers.