<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 23, 2022 at 5:14 AM Peder Axensten <<a href="mailto:Peder.Axensten@slu.se">Peder.Axensten@slu.se</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear list,<br>
<br>
Previously, I could obtain a pdal::LasHeader through:<br>
<br>
inline pdal::LasHeader get_header( const std::filesystem::path & path_ ) {<br>
pdal::LasHeaderheader;<br>
pdal::ILeStreaminput{ path_.native() };<br>
input >> header;<br>
return header;<br>
}<br>
<br>
But in the latest version of pdal the header copy constructor is implicitly deleted.<br></blockquote><div><br></div><div>This issue has already been reported and fixed and will be included in the final 2.4 release:<br><br> <a href="https://github.com/PDAL/PDAL/pull/3713">https://github.com/PDAL/PDAL/pull/3713</a></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The tool needs to process all las-files of a specified directory (and its sud-directories). If I need to read the contents of files that could actually be ignored, it would increase processing time probably tenfolds. Is there a way to avoid this? </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Maybe a previous stage in the pipeline to filter files based only on their header (bounding box) info?<br>
If I implement it as a streaming operation, could I get the bounding box from header info and possibly not stream anything?<br></blockquote><div><br></div><div>The bounding box of a LAS file is always stored at offsets 179-226, so you can read them directly if you like, but as I said above, I have re-enabled copying of LasHeader.</div><div><br></div></div>-- <br><div dir="ltr" class="gmail_signature">Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div></div>