MCPcopy Create free account
hub / github.com/PDAL/PDAL / addExtraBytesVlr

Method addExtraBytesVlr

io/LasWriter.cpp:576–590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

574
575
576void LasWriter::addExtraBytesVlr()
577{
578 if (m_extraDims.empty())
579 return;
580
581 std::vector<char> ebBytes;
582 for (auto& dim : m_extraDims)
583 {
584 las::ExtraBytesIf eb(dim.m_name, dim.m_dimType.m_type,
585 Dimension::description(dim.m_dimType.m_id));
586 eb.appendTo(ebBytes);
587 }
588
589 addVlr(las::SpecUserId, las::ExtraBytesRecordId, "Extra Bytes Record", ebBytes);
590}
591
592
593/// Add a standard or extended VLR depending on the data size.

Callers

nothing calls this directly

Calls 3

descriptionFunction · 0.85
appendToMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected