Skip to content

Commit

Permalink
support overriding a_srs in COPC data
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Jan 6, 2023
1 parent 1ef7940 commit a808c31
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions bu/CopcSupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a808c31

Please sign in to comment.