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

Method addSpatialRefVlrs

io/LasWriter.cpp:483–497  ·  view source on GitHub ↗

Set VLRs from the active spatial reference. \param srs - Active spatial reference.

Source from the content-addressed store, hash-verified

481/// Set VLRs from the active spatial reference.
482/// \param srs - Active spatial reference.
483void LasWriter::addSpatialRefVlrs()
484{
485 // Delete any existing spatial ref VLRs. This can be an issue if we're
486 // using the reader to write multiple output files via a filename template.
487 deleteVlr(las::TransformUserId, las::GeotiffDirectoryRecordId);
488 deleteVlr(las::TransformUserId, las::GeotiffDoublesRecordId);
489 deleteVlr(las::TransformUserId, las::GeotiffAsciiRecordId);
490 deleteVlr(las::TransformUserId, las::WktRecordId);
491 deleteVlr(las::LiblasUserId, las::WktRecordId);
492
493 if (d->header.versionAtLeast(1, 4))
494 addWktVlr();
495 else
496 addGeotiffVlrs();
497}
498
499void LasWriter::addGeotiffVlrs()
500{

Callers

nothing calls this directly

Calls 1

versionAtLeastMethod · 0.45

Tested by

no test coverage detected