LAS format for export command line

Feel free to ask any question here
Post Reply
thierry
Posts: 15
Joined: Tue Sep 17, 2019 7:20 am

LAS format for export command line

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

Re: LAS format for export command line

Post 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.
Daniel, CloudCompare admin
thierry
Posts: 15
Joined: Tue Sep 17, 2019 7:20 am

Re: LAS format for export command line

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

Re: LAS format for export command line

Post by daniel »

Don't you have to set LAZ as output extension instead of LAS? (not sure about this one ;)
Daniel, CloudCompare admin
thierry
Posts: 15
Joined: Tue Sep 17, 2019 7:20 am

Re: LAS format for export command line

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

Re: LAS format for export command line

Post 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)?
Daniel, CloudCompare admin
thierry
Posts: 15
Joined: Tue Sep 17, 2019 7:20 am

Re: LAS format for export command line

Post by thierry »

Sorry can't send you this file. maybe on another case later. Thank you for your answers.
Post Reply