Set VLRs from the active spatial reference. \param srs - Active spatial reference.
| 481 | /// Set VLRs from the active spatial reference. |
| 482 | /// \param srs - Active spatial reference. |
| 483 | void 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 | |
| 499 | void LasWriter::addGeotiffVlrs() |
| 500 | { |
nothing calls this directly
no test coverage detected