From c28d5371a5104764f930af4d379cb4ba29886feb Mon Sep 17 00:00:00 2001 From: Howard Butler Date: Thu, 25 Nov 2021 08:10:56 -0600 Subject: [PATCH] fix #92, writing invalid VLR count --- bu/CopcSupport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bu/CopcSupport.cpp b/bu/CopcSupport.cpp index c5e84ee..72860a6 100644 --- a/bu/CopcSupport.cpp +++ b/bu/CopcSupport.cpp @@ -54,7 +54,7 @@ CopcSupport::CopcSupport(const BaseInfo& b) : m_b(b), m_header.offset.x = b.offset[0]; m_header.offset.y = b.offset[1]; m_header.offset.z = b.offset[2]; - m_header.vlr_count = 4; + m_header.vlr_count = 3; //IMPORTANT: We have to calculate the point offset here so that we can start writing // points to the proper location immediately. This means knowing the sizes of the VLRs