| 478 | |
| 479 | |
| 480 | las::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 | |
| 499 | void CopcReader::validateHeader(const las::Header& h) |
nothing calls this directly
no test coverage detected