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

Method addMetadataVlr

io/LasWriter.cpp:423–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421
422
423void LasWriter::addMetadataVlr(MetadataNode& forward)
424{
425 std::string json = Utils::toJSON(forward);
426 if ((json.size() > las::Vlr::MaxDataSize) && !d->header.versionAtLeast(1, 4))
427 {
428 log()->get(LogLevel::Debug) << "pdal metadata VLR too large "
429 "to write in VLR for files < LAS 1.4";
430 }
431 else
432 {
433 std::vector<char> data(json.begin(), json.end());
434 addVlr(las::PdalUserId, las::PdalMetadataRecordId, "PDAL metadata", data);
435 }
436}
437
438void LasWriter::addPipelineVlr()
439{

Callers

nothing calls this directly

Calls 7

toJSONFunction · 0.85
logFunction · 0.50
sizeMethod · 0.45
versionAtLeastMethod · 0.45
getMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected