[Liblas-commits] hg: remove laszip vlr if not compressed

liblas-commits at liblas.org liblas-commits at liblas.org
Fri Jan 7 11:41:39 EST 2011


details:   http://hg.liblas.orghg/rev/3c1e3bf70b08
changeset: 2705:3c1e3bf70b08
user:      Michael P. Gerlek <mpg at flaxen.com>
date:      Fri Jan 07 08:41:32 2011 -0800
description:
remove laszip vlr if not compressed

diffstat:

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

diffs (14 lines):

diff -r d04b79647047 -r 3c1e3bf70b08 src/detail/writer/header.cpp
--- a/src/detail/writer/header.cpp	Fri Jan 07 09:55:21 2011 -0600
+++ b/src/detail/writer/header.cpp	Fri Jan 07 08:41:32 2011 -0800
@@ -155,6 +155,10 @@
             throw configuration_error("LASzip compression support not enabled in this libLAS configuration.");
 #endif
         }
+        else
+        {
+            m_header.DeleteVLRs("laszip encoded", 22204);
+        }
 
         int32_t difference = m_header.GetDataOffset() - GetRequiredHeaderSize();
 


More information about the Liblas-commits mailing list