From a808c31db9f547c14b581c1ff77d365b6dadcade Mon Sep 17 00:00:00 2001 From: Howard Butler Date: Fri, 6 Jan 2023 14:08:50 -0600 Subject: [PATCH] support overriding a_srs in COPC data --- bu/CopcSupport.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bu/CopcSupport.cpp b/bu/CopcSupport.cpp index a630372..f358d65 100644 --- a/bu/CopcSupport.cpp +++ b/bu/CopcSupport.cpp @@ -32,10 +32,14 @@ namespace bu { CopcSupport::CopcSupport(const BaseInfo& b) : m_b(b), - m_lazVlr(b.pointFormatId, extraByteSize(), lazperf::VariableChunkSize), - m_ebVlr(), - m_wktVlr(b.srs.getWKT()) + m_lazVlr(b.pointFormatId, extraByteSize(), lazperf::VariableChunkSize) { + + if (b.opts.a_srs.size()) + m_wktVlr = b.opts.a_srs; + else + m_wktVlr = b.srs.getWKT(); + m_f.open(toNative(b.opts.outputName), std::ios::out | std::ios::binary); //ABELL