<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">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">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>