Changing point values in place

11 views
Skip to first unread message

Suresh Babu Jakka

unread,
Sep 7, 2017, 11:21:08 AM9/7/17
to The LAS room - a friendly place to discuss the LAS and LAZ formats
Hello all,

I am new to LAZ api and learning it now. It is really straight forward and easy to pick it up. 

I am trying to classify bunch of points in LAZ file in place. I run an algorithm on bunch points and classify them if needed in place. Is it possible using LAZ api? I could not find anything related to this in examples. Do I need to un-compress  LAZ file to LAS, classify the points and then compress it?

Thank you and appreciate your help,
Suresh

Andrew Bell

unread,
Sep 7, 2017, 12:41:43 PM9/7/17
to las...@googlegroups.com
Yes.  You can't change values of point attributes directly in a LAZ file.

-- 

Suresh Babu Jakka

unread,
Sep 7, 2017, 5:17:10 PM9/7/17
to The LAS room - a friendly place to discuss the LAS and LAZ formats
Thank you for the quick reply.

Suresh Babu Jakka

unread,
Sep 11, 2017, 5:47:07 PM9/11/17
to The LAS room - a friendly place to discuss the LAS and LAZ formats
Hello,

Is it possible to read a block of data from LAZ file, modify the point data and write back that block of data in place to LAZ file?
I am guessing we cannot do it, but wanted to confirm it.

Thank you for your help,
Suresh


On Thursday, September 7, 2017 at 11:41:43 AM UTC-5, Andrew Bell wrote:

Martin Isenburg

unread,
Sep 11, 2017, 6:06:31 PM9/11/17
to The LAS room - a friendly place to discuss specifications of the LAS format
Hello,

I guess you mean per "compressed unit" and that is called a "chunk" in LASzip lingo. No. That is not possible as the size of the compressed chunk may not be the same as before. Compression and therefore compressed chunk size varies with point content. When you change the content of one or more points in the chunk thrn you are likely to change the size of the entire compressed chunk.

In LAStools I use the concept of LASlayers [1] to log small changes in compressed files. But that is not part of LASzip.


Regards,

Martin @rapidlasso

--
--
You are subscribed to "The LAS room - a friendly place to discuss the the LAS or LAZ formats" for those who want to see LAS or LAZ succeed as open standards. Go on record with bug reports, suggestions, and concerns about current and proposed specifications.
 
Visit this group at http://groups.google.com/group/lasroom
Post to this group with an email to las...@googlegroups.com
Unsubscribe by email to lasroom+unsubscribe@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "The LAS room - a friendly place to discuss the LAS and LAZ formats" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lasroom+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages