Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

read.las – ERROR: 'end-of-file … #35

Closed
jaanusremm opened this issue Apr 11, 2019 · 6 comments
Closed

read.las – ERROR: 'end-of-file … #35

jaanusremm opened this issue Apr 11, 2019 · 6 comments
Assignees
Labels
Bug A bug in the package

Comments

@jaanusremm
Copy link

Hi,
Get error if trying to read data from LAZ file. Only a minor part of the data set is successfully read.
‘rlas’ version 1.3.1

library(rlas)
las.data <- read.las(files='581536_2018_mets.laz')

#> ERROR: 'end-of-file during chunk with index 0' after 39690 of 1004249 points

581536_2018_mets.laz.zip

@Jean-Romain Jean-Romain self-assigned this Apr 11, 2019
@Jean-Romain Jean-Romain added the Bug A bug in the package label Apr 11, 2019
@Jean-Romain
Copy link
Collaborator

Jean-Romain commented Apr 11, 2019

Thank you for reporting. On my side I have the same with rlas 1.3.2. It looks like a corrupted file but lastools is able to read it and parse into .txt and to uncompress into .las.

I can investigate but honestly I have few hope to find the issue. It all comes from LASlib the C++ library that is internally used to read the files. The only thing I can test is to update LASlib but it is a long and boring job.

For now I suggest you to uncompressed your file to .las with a recent version of laszip. This is what I just did and I was able to correclty read the .las file.

@jaanusremm
Copy link
Author

It works. At least on the first try. Thanks :)

@Jean-Romain
Copy link
Collaborator

Should work on the second try as well 😉. I'll try to update LASlib in May to see if that solves the issue.

@Jean-Romain
Copy link
Collaborator

Fixed by updating LASlib as I guessed.

@jaanusremm
Copy link
Author

(y)

@Jean-Romain
Copy link
Collaborator

Well it is not currently working on Windows. See #37

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Bug A bug in the package
Projects
None yet
Development

No branches or pull requests

2 participants