| 436 | } |
| 437 | |
| 438 | void 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. |
nothing calls this directly
no test coverage detected