Page 1 of 1

save PC in LAS 1.4 format with customized classes

Posted: Thu Mar 04, 2021 4:00 pm
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.

Re: save PC in LAS 1.4 format with customized classes

Posted: Thu Mar 04, 2021 7:44 pm
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.