r-lidar / rlas

R package to read and write las and laz files used to store LiDAR data
https://cran.r-project.org/package=rlas
GNU General Public License v3.0
34 stars 14 forks source link

fixes issue #7 #8

Closed floriandeboissieu closed 6 years ago

floriandeboissieu commented 6 years ago

I had to touch to LASlib lasreadermerged, but it works.

Jean-Romain commented 6 years ago

Well I'm not comfortable with touching LASlib. Could you explain me why you need to touch LASlib. I don't know the exact role of the lines you commented but they look important. I can't believe LASlib is not able to read several 1.4 file natively.

Each time we touch LASlib we make the update more difficult and we are likely to add bugs.

Could you also send be some tiny files in 1.4. Actually I can't search on my side because I don't have this kind of file.

floriandeboissieu commented 6 years ago

A small comment to explain the changes. Two things were wrong for extra byte reading of merged LAS:

I'll try to have more precisions from Martin Isenburg about the why it was implemented like this.

floriandeboissieu commented 6 years ago

I'm not confortable neither, every line of code had a reason until now, that is why I asked Martin Isenburg about it. Let see what he answers.

Unfortunately I don't have LAS 1.4 files neither, maybe ASPRS has that kind of file format samples. But if you are looking for extra byte files, there is one in the inst/extdata directory. The extra byte format is formalised in LAS 1.4 specs but it was used before (since LAS 1.1 by Riegl, see http://www.riegl.com/uploads/tx_pxpriegldownloads/Whitepaper_-_LAS_extrabytes_implementation_in_Riegl_software_01.pdf).

Cheers

Florian

On 23/11/2017 14:26, Jean-Romain Roussel wrote:

Well I'm not comfortable with touching LASlib. Could you explain me why you need to touch LASlib. I don't know the exact role of the lines you commented but they look important. I can't believe LASlib is not able to read several 1.4 file natively.

Each time we touch LASlib we make the update more difficult and we are likely to add bugs.

Could you also send be some tiny files in 1.4. Actually I can't search on my side because I don't have this kind of file.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Jean-Romain/rlas/pull/8#issuecomment-346617791, or mute the thread https://github.com/notifications/unsubscribe-auth/AP54IU24AUrOeIidJfRyRx9TRyj_ZjIuks5s5XJ0gaJpZM4Qos9k.