Skip to content
New issue

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

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

Already on GitHub? Sign in 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

Comments

@jaanusremm
Copy link

@jaanusremm jaanusremm commented Apr 11, 2019

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 label Apr 11, 2019
@Jean-Romain
Copy link
Owner

@Jean-Romain 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

@jaanusremm jaanusremm commented Apr 12, 2019

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

@Jean-Romain
Copy link
Owner

@Jean-Romain Jean-Romain commented Apr 12, 2019

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
Owner

@Jean-Romain Jean-Romain commented Apr 17, 2019

Fixed by updating LASlib as I guessed.

@jaanusremm
Copy link
Author

@jaanusremm jaanusremm commented Apr 18, 2019

(y)

@Jean-Romain
Copy link
Owner

@Jean-Romain Jean-Romain commented Apr 18, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.