-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
readLAS fail (LASlib internal error) #38
Comments
Please show me which file are failing. In |
Here is a small LAZ (link) |
I cannot reproduce. Does the following work for you? library(rlas)
read.las("~/Téléchargements/clip_LiDAR.laz")
read.lasheader("~/Téléchargements/clip_LiDAR.laz") |
Yes, using rlas directly works, but not lidR... I have tried uninstalling/reinstalling lidR without any success. |
No problem with lidR. It is not suprising to me since I tried with library(lidR)
readLAS("~/Téléchargements/clip_LiDAR.laz")
#> class : LAS (LASF v1.2)
#> point format : 1
#> memory : 999.3 Kb
#> extent :294923, 294943, 5281064, 5281084 (xmin, xmax, ymin, ymax)
#> coord. ref. : +init=epsg:2949 +proj=tmerc +lat_0=0 +lon_0=-70.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs
#> area : 312.1502 m² (convex hull)
#> points : 12599 points
#> density : 40.36 points/m²
#> names : X Y Z gpstime Intensity ReturnNumber NumberOfReturns ScanDirectionFlag EdgeOfFlightline Classification Synthetic_flag Keypoint_flag Withheld_flag ScanAngleRank UserData PointSourceID Created on 2019-05-02 by the reprex package (v0.2.1) |
It now works as it should. The problem was probably caused by a conflict between different versions of R and packages. Also, I was working inside a Rproject created with an other version of R and I was getting other error when trying to install packages. So the problem had probably nothing to do with rlas nor lidR. |
I just found the real root cause by accident... the filepath and filename must not contain accent or other similar special caracter. In my case, I had a long path with some |
Well, accents should be supported. Look my path in previous post. |
I recently updated lidR and I'm now unable to read LAS/LAZ files that worked perfectly before.
I was before on lidR (2.0.0), rlas (1.2.8) and R (3.4.3) and updated to lidR (2.0.2), rlas (1.3.2) and R (3.6.0).
The error that
readLAS
returns:The text was updated successfully, but these errors were encountered: