<div dir="ltr"><div>Nobody has had this problem? Or an idea of what might've going on?<br><br></div>I've tried compiling liblas 1.8.0 from its tag, same result.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 7, 2016 at 6:08 PM, Helimap Postmaster <span dir="ltr"><<a href="mailto:postmaster@helimap.ch" target="_blank">postmaster@helimap.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>It's crazy but If I check the tellg() I get the following output:<br><br><span style="font-family:"Courier";font-size:10pt;color:rgb(0,0,0)">point: 1</span>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Courier";font-size:10pt;color:rgb(0,0,0)">fs stream at position 257</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Courier";font-size:10pt;color:rgb(0,0,0)">1.18074e+006, 6.11798e+006, 481.39</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Courier";font-size:10pt;color:rgb(0,0,0)">point: 2</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Courier";font-size:10pt;color:rgb(0,0,0)">fs stream at position 285</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Courier";font-size:10pt;color:rgb(0,0,0)">1.18074e+006, 6.11799e+006, 499.69</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Courier";font-size:10pt;color:rgb(0,0,0)">point: 3</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Courier";font-size:10pt;color:rgb(0,0,0)">fs stream at position 313</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Courier";font-size:10pt;color:rgb(0,0,0)">1.18074e+006, 6.11799e+006, 496.48</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Courier";font-size:10pt;color:rgb(0,0,0)">point: 4</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Courier";font-size:10pt;color:rgb(0,0,0)">fs stream at position 341</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Courier";font-size:10pt;color:rgb(0,0,0)">1.18074e+006, 6.118e+006, 509.77</span></p><p style="margin:0px;text-indent:0px"><br><span style="font-family:"Courier";font-size:10pt;color:rgb(0,0,0)"></span></p><p style="margin:0px;text-indent:0px"><span style="font-family:"Courier";font-size:10pt;color:rgb(0,0,0)"><span style="font-family:arial,helvetica,sans-serif">up to point 106, instead of the 7th point. I have no clue on what's going on here.</span> <br></span></p><br></div><span style="font-family:arial,helvetica,sans-serif">The latest points is at tellg <span style="font-size:10pt;color:rgb(0,0,0)">9445, the number of bytes available are </span></span><span style="font-family:"Courier";font-size:10pt;color:rgb(0,0,0)"><span style="font-family:arial,helvetica,sans-serif">415342345 (found out with seekg and tellg)</span><br></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 7, 2016 at 5:40 PM, Helimap Postmaster <span dir="ltr"><<a href="mailto:postmaster@helimap.ch" target="_blank">postmaster@helimap.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div>I am reading a las file but it fails to read after the 7th point throwing an exception because it has reached eof.<br><br></div>The cloud is 150000 points, so it seems unlikely it has reached the end.<br><br></div>I am reading like stated on the tutorial <a href="http://www.liblas.org/tutorial/cpp.html#reading-las-data-using-liblas-reader" target="_blank">http://www.liblas.org/tutorial/cpp.html#reading-las-data-using-liblas-reader</a><br><br></div>with the only difference that I compiled a <b>staticĀ </b>version of liblas. To do that I had to change the CMakeLists slightly, mainly changing the add_library to static and also I had to add the c++ sources to the c_api (which I don't use) because the headers depend on some cpp sources.<br><br></div>I'm using the master from the git repository.<br><br></div>The las is not corrupt, as I can load it into cloudcompare just fine. I've also tried with one of the liblas samples <a href="http://www.liblas.org/samples/LAS12_Sample_withIntensity_Quick_Terrain_Modeler.las" target="_blank">http://www.liblas.org/samples/LAS12_Sample_withIntensity_Quick_Terrain_Modeler.las</a>, which fails at point 62. Another cloud I have failed at the header, at step 18.<br><br></div><div>Any idea of what might be happening?<br><br></div><div>Debugging I've gotten to the eof check in the read_n function, which is the one that throws. In release, nothing happens as the exceptions are disabled, but I only get the 6 points.<br></div><div><br></div>I'm under windows.<br><br></div>Cheers!<br><br></div>Pol<br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>