las 1.4 export with extra bytes

Feel free to ask any question here
Post Reply
bkabelik
Posts: 6
Joined: Wed Jun 27, 2018 1:54 pm

las 1.4 export with extra bytes

Post by bkabelik »

Hi,

I'm trying to copy classification from one point cloud to the other due to broken extra bytes. Everything is working fine until I want to save the data as LAS 1.4.

1. when I try to save as LAS 1.4 I can't select the Riegl extra bytes (echo width, amplitude, scalar fields) and therefore they are also not saved.
2. when I try to save as LAS 1.4 then it saves it as LAS 1.2.
3. Everything is fine when I save it as LAS 1.2 (including extra Bytes).

Can sombody confirm that this is not working with the 2.10-alpha realease? Or am I doing something wrong (I tought maybe I miss something because I cant choose between save to LAS 1.3 and LAS 1.4).

thanks and best regards

benjamin
daniel
Site Admin
Posts: 7721
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: las 1.4 export with extra bytes

Post by daniel »

The 'LAS 1.3 and 1.4' option is not using the same library than the default filter. Clearly this additional filter was meant to load FWF data from 1.3+ or 1.4 data).

The default filter is using PDAL. I guess it doesn't save LAS 1.4 file if this is not needed? I'm not the author of this filter, therefore I'm not 100% sure about this.
Daniel, CloudCompare admin
bkabelik
Posts: 6
Joined: Wed Jun 27, 2018 1:54 pm

Re: las 1.4 export with extra bytes

Post by bkabelik »

ok understood thanks. You are right I think. afaik you have to tell pdal the minor version and the point dataformat for LAS 1.4 with
--writers.las.minor_version=4 //for LAS 1.4
--writers.las.dataformat_id=6 //point format 6 for returns above 7 returns
bkabelik
Posts: 6
Joined: Wed Jun 27, 2018 1:54 pm

Re: las 1.4 export with extra bytes

Post by bkabelik »

hi,

i was able to compile cc in windows "successfully" with option_use_gdal and option_pdal_las. Unfortunately I cannot load LAS files in CC.
The console writes when I try to open a file:
[09:08:09] [I/O] CC has caught an exception while loading file 'C:/temp/04_trafo_neu/1_01_20151109_151109_225733_1_originalpoints - Cloud2122323423.las'
[09:08:09] [I/O] Exception: bad allocation

attached are my cmake settings. I tried tu use osgeo4w pdal. I hope this is possible.

Do I also have to install the QLAS_FWF_IO_Plugin to be abel to read LAS?

thanks
Attachments
cmake2.jpg
cmake2.jpg (166.22 KiB) Viewed 2943 times
cmake1.jpg
cmake1.jpg (134.96 KiB) Viewed 2943 times
daniel
Site Admin
Posts: 7721
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: las 1.4 export with extra bytes

Post by daniel »

Hum, this error seems to be related to a shortage of memory actually (not a missing third party library or unsupported format/version).

How big is your file?
Daniel, CloudCompare admin
bkabelik
Posts: 6
Joined: Wed Jun 27, 2018 1:54 pm

Re: las 1.4 export with extra bytes

Post by bkabelik »

hmm it is 1.6GB.
I could open it in your build 2.10 alpha version.
I also tried a smaller 400mb file, did also not work.
daniel
Site Admin
Posts: 7721
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: las 1.4 export with extra bytes

Post by daniel »

Which version of PDAL are you using?
Daniel, CloudCompare admin
bkabelik
Posts: 6
Joined: Wed Jun 27, 2018 1:54 pm

Re: las 1.4 export with extra bytes

Post by bkabelik »

i have to check tomorrow at my computer but I'm pretty sure it is 1.7.2 maybe 1.7.1
bkabelik
Posts: 6
Joined: Wed Jun 27, 2018 1:54 pm

Re: las 1.4 export with extra bytes

Post by bkabelik »

the PDAL version is 1.7.2 (it is the osgeo4w version) I used for building CC
daniel
Site Admin
Posts: 7721
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: las 1.4 export with extra bytes

Post by daniel »

On my side I compiled CC with version 1.6. I don't know if it is related to the problem?
Daniel, CloudCompare admin
Post Reply