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

Method validateHeader

io/CopcReader.cpp:499–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497
498
499void CopcReader::validateHeader(const las::Header& h)
500{
501 if (h.magic != "LASF")
502 throwError("Invalid LAS header in COPC file");
503 int pdrf = h.pointFormat();
504 if (pdrf < 6 || pdrf > 8)
505 throwError("COPC file has invalid point format '" + std::to_string(pdrf) +
506 "'. Must be 6-8.");
507}
508
509
510void CopcReader::validateVlrInfo(const las::Vlr& v, const copc::Info& i)

Callers

nothing calls this directly

Calls 1

pointFormatMethod · 0.45

Tested by

no test coverage detected