save PC in LAS 1.4 format with customized classes

Feel free to ask any question here
Post Reply
pmr
Posts: 29
Joined: Thu Mar 04, 2021 3:38 pm

save PC in LAS 1.4 format with customized classes

Post by pmr »

Hi,
I would like to classify my TLS pointcloud using my own ontology and save it into a LAS 1.4 file, making use of the user definable classes foreseen in this format (values 64 to 255 of Classification). For that, I think I can create several constant SF which values I can set for each sub cloud according to its characteristics. I'm able to save the cloud ( merged from the sub clouds) in ASCII format and those SFs and respective values are kept. How can I make the same for LAS 1.4 format? What kind of Point Record Format is assumed by CC?
Some help would be highly appreciated.
daniel
Site Admin
Posts: 7712
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: save PC in LAS 1.4 format with customized classes

Post by daniel »

I believe you just have to merge all the 'single valued' scalar fields into a 'Classification' field? (as long as it's below 255). See https://github.com/CloudCompare/CloudCo ... r.cpp#L564

And mind that you have to save it with the 'LAS 1.3 or 1.4' I/O filter.
Daniel, CloudCompare admin
Post Reply