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

False positive invalid header error for negative offset #34

Closed spono closed 5 years ago

spono commented 5 years ago

Ciao JR,

While playing with a catalog of tiles, I got the error "Invalid header: offsets cannot be negative".

At this point, I think that the error could be related to the fact that I'm using the California Teale Albers - NAD83 CRS which (in my case) has a negative X coordinates, leading hence to a negative X offset.

Any other idea? possible solutions? Thank you!

Jean-Romain commented 5 years ago

It is a misinterpretation of the LAS specifications. Offset can indeed be negative. Fixed in rlas 1.3.2.