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

Method fetchEbVlr

io/CopcReader.cpp:480–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

478
479
480las::Vlr CopcReader::fetchEbVlr(const las::VlrCatalog& catalog)
481{
482 las::Vlr vlr(las::SpecUserId, las::ExtraBytesRecordId);
483 vlr.dataVec = catalog.fetchWithDescription(las::SpecUserId, las::ExtraBytesRecordId,
484 vlr.description);
485 if (vlr.dataVec.empty())
486 return vlr;
487
488 if (vlr.dataVec.size() % las::ExtraBytesSpecSize != 0)
489 {
490 log()->get(LogLevel::Warning) << "Bad size for extra bytes VLR. Ignoring.";
491 return vlr;
492 }
493 m_p->extraDims = las::ExtraBytesIf::toExtraDims(vlr.data(), vlr.dataSize(),
494 las::baseCount(m_p->header.pointFormat()));
495 return vlr;
496}
497
498
499void CopcReader::validateHeader(const las::Header& h)

Callers

nothing calls this directly

Calls 9

baseCountFunction · 0.85
fetchWithDescriptionMethod · 0.80
dataSizeMethod · 0.80
logFunction · 0.50
emptyMethod · 0.45
sizeMethod · 0.45
getMethod · 0.45
dataMethod · 0.45
pointFormatMethod · 0.45

Tested by

no test coverage detected