<div dir="ltr">Thanks Andrew!<div>You were right. I applied the scale obtained from the LAS header and I am getting good results.</div><div>I am not sure if you have the answer for this one but, why are the resulting LAS files (after sorting) a little bit bigger in size than the originals?</div><div><br></div><div>Once again thanks for your help.</div><div><br></div><div>Miguel</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 15, 2019 at 3:57 AM Andrew Bell <<a href="mailto:andrew.bell.ia@gmail.com">andrew.bell.ia@gmail.com</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"><div dir="ltr">PDAL writes LAS with scale of .01 by default (see <a href="https://pdal.io/stages/writers.las.html" target="_blank">https://pdal.io/stages/writers.las.html</a>).  I assume that using more precision than your input would cause an overflow that's detected by the system.  You should set the output scale that you desire.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 15, 2019 at 2:01 AM Miguel Guerrero <<a href="mailto:g.miguel.guerrero.m@gmail.com" target="_blank">g.miguel.guerrero.m@gmail.com</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"><div lang="EN-US"><div><p class="MsoNormal">Hello,</p><p class="MsoNormal">I am having troubles with a LAS file dataset. When I run the SORT filter in pipeline mode, I get the following message:</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">PDAL: writers.las: Unable to convert scaled value (2663397360) to int32 for dimension 'Y' when writing LAS/LAZ file \\sfcad8\E\16028101_PowerEngineers_TWE\NVE\00_SORTED\pt000002.las.</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">And the resulting LAS file are empty (1 KB size)</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">The X, Y, Z scales for the LAS dataset is “0.10000000000000000555”.</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I have run exactly the same filter on other datasets and it worked just fine. However, the other datasets where in a different projection.</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Any idea why PDAL is throwing this message and writing no points to the resulting LAS file?</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Regards,</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Miguel</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986" target="_blank">Mail</a> for Windows 10</p><p class="MsoNormal"><u></u> <u></u></p></div></div>_______________________________________________<br>
pdal mailing list<br>
<a href="mailto:pdal@lists.osgeo.org" target="_blank">pdal@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/pdal" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/pdal</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr">Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>
</blockquote></div>