<div dir="auto">Each las vlr has a length. The length indicated in your vlr is incorrect in that it would encroach into point data. Contact your data provider to get a corrected file.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 27, 2023, 6:56 PM Speed, Cole M <<a href="mailto:cole.speed@beg.utexas.edu">cole.speed@beg.utexas.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hello all,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I am using 'pdal info' to view the metadata for a few laz files. For several of the files, pdal info returns the error: </div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<p style="margin:0px;font:11px Menlo"><span style="font-variant-ligatures:no-common-ligatures">PDAL: readers.las: VLR 1(SF/0) size too large -- flows into point data.</span></p>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">I believe this may indicate that the header/VLR s longer than is expected, causing the metadata information to be misinterpreted.
 Attempting to troubleshoot the issue by having a look at the lasreader source code (<a href="https://github.com/PDAL/PDAL/blob/master/io/LasReader.cpp" id="m_3397680777337361499LPNoLPOWALinkPreview" target="_blank" rel="noreferrer">https://github.com/PDAL/PDAL/blob/master/io/LasReader.cpp</a>), I see the below
 code snippet:</span></div>
<div></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">        if ((uint64_t)stream->tellg() + vlr.promisedDataSize > d->header.pointOffset)
<div>            throwError("VLR " + std::to_string(i + 1) +</div>
<div>                "(" + vlr.userId + "/" + std::to_string(vlr.recordId) + ") "</div>
                "size too large -- flows into point data.");<br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I interpret this to indicate an underlying issue related to the laz header/VLR, but I am unsure what specifically this means or how to resolve it. The files are also unreadable by QGIS (Error: 'readers.las: Invalid VLR - exceeds specified file range'). <span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">Insight
 from anyone who has encountered these errors or has any thoughts as to what specifically they imply about the header/VLR formatting of these laz files would be greatly appreciated. </span><span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">Thanks
 in advance!</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Cole Speed</div>
<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div id="m_3397680777337361499Signature">
<div><span style="font-family:Arial,Helvetica,sans-serif;font-size:small;text-align:start;color:rgb(32,33,36);background-color:rgb(255,255,255)">---------------------</span></div>
<div><span style="font-family:Arial,Helvetica,sans-serif;font-size:small;text-align:start;color:rgb(32,33,36);background-color:rgb(255,255,255)">Cole M. Speed</span></div>
<div style="font-family:Arial,Helvetica,sans-serif;font-size:small;text-align:start;color:rgb(32,33,36);background-color:rgb(255,255,255)">
Ph.D. Candidate</div>
<div style="font-family:Arial,Helvetica,sans-serif;font-size:small;text-align:start;color:rgb(32,33,36);background-color:rgb(255,255,255)">
<span style="font-family:Arial,Helvetica,sans-serif;font-size:small;color:rgb(32,33,36)">Jackson School of Geosciences, University of Texas at Austin</span></div>
<div style="font-family:Arial,Helvetica,sans-serif;font-size:small;text-align:start;color:rgb(32,33,36);background-color:rgb(255,255,255)">
<br>
</div>
</div>
</div>
</div>

_______________________________________________<br>
pdal mailing list<br>
<a href="mailto:pdal@lists.osgeo.org" target="_blank" rel="noreferrer">pdal@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/pdal" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/pdal</a><br>
</blockquote></div>