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

Method addPipelineVlr

io/LasWriter.cpp:438–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

436}
437
438void LasWriter::addPipelineVlr()
439{
440 // Write a VLR with the PDAL pipeline.
441 std::ostringstream ostr;
442 PipelineWriter::writePipeline(this, ostr);
443 std::string json = ostr.str();
444 if (json.size() > las::Vlr::MaxDataSize && !d->header.versionAtLeast(1, 4))
445 {
446 log()->get(LogLevel::Debug) << "pdal pipeline VLR too large "
447 "to write in VLR for files < LAS 1.4";
448 }
449 else
450 {
451 std::vector<char> data(json.begin(), json.end());
452 addVlr(las::PdalUserId, las::PdalPipelineRecordId, "PDAL pipeline", data);
453 }
454}
455
456
457/// Add VLRs forwarded from the input.

Callers

nothing calls this directly

Calls 8

writePipelineFunction · 0.85
strMethod · 0.80
logFunction · 0.50
sizeMethod · 0.45
versionAtLeastMethod · 0.45
getMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected