[Liblas-commits] hg: update the header's data offset when we add the LASzip VLR e...

liblas-commits at liblas.org liblas-commits at liblas.org
Tue Jun 28 11:37:59 EDT 2011


details:   http://hg.liblas.orghg/rev/0f5faf171c35
changeset: 3027:0f5faf171c35
user:      Howard Butler <hobu.inc at gmail.com>
date:      Tue Jun 28 10:37:50 2011 -0500
description:
update the header's data offset when we add the LASzip VLR entry

diffstat:

 src/detail/writer/header.cpp |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 311ca9ff9d99 -r 0f5faf171c35 src/detail/writer/header.cpp
--- a/src/detail/writer/header.cpp	Mon Jun 27 14:58:58 2011 -0500
+++ b/src/detail/writer/header.cpp	Tue Jun 28 10:37:50 2011 -0500
@@ -154,6 +154,7 @@
             VariableRecord v;
             zpd.ConstructVLR(v);
             m_header.AddVLR(v);
+            m_header.SetDataOffset(m_header.GetDataOffset()+v.GetRecordLength());
 #else
             throw configuration_error("LASzip compression support not enabled in this libLAS configuration.");
 #endif


More information about the Liblas-commits mailing list