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
LASlib error with read.las #43
Comments
Could you tell me if |
It does:
library(rlas)
las<-rlas::read.las("F:/QL1_UTM12_Deliverables/point_cloud/tilecls/34111H6117.las")
ERROR: reading -989724376 bytes of data into header.evlrs[0].data
ERROR: cannot open lasreaderlas with file name 'F:\QL1_UTM12_Deliverables\point_cloud\tilecls\34111H6117.las'
Error in C_reader(ifiles, ofile, select, filter, filter_wkt) :
LASlib internal error. See message above.
read.lasheader("F:/QL1_UTM12_Deliverables/point_cloud/tilecls/34111H6117.las")
ERROR: reading -989724376 bytes of data into header.evlrs[0].data
ERROR: cannot open lasreaderlas with file name 'F:\QL1_UTM12_Deliverables\point_cloud\tilecls\34111H6117.las'
Error: LASlib internal error. See message above.
list()
|
Nice. Saves me the task of opening, saving and closing all files once in a catalog prior to use... |
I pushed an updated version of Notice that lidR <= 1.3.1 is not compatible with rlas 1.4.0 so you need lidR 1.3.2 if you want to work with rlas 1.4.0. lidR 1.3.2 is on CRAN but no windows builds are available yet. |
I only have access to my windows machine right now, but it still fails on 1.3.9 and 1.4.0 on the devel branch won't build for me.... If it's helpful, here's my build console output... |
The bug is windows specific. I'm able to read the file with
It compiles in C++11 despite the rlas::read.lasheader("~/Téléchargements/issue 43/34111H6117.las")
#> $`File Signature`
#> [1] "LASF"
#> $`File Source ID`
#> [1] 0
#> $`Global Encoding`
#> $`Global Encoding`$`GPS Time Type`
#> [1] TRUE
#> $`Global Encoding`$`Waveform Data Packets Internal`
#> [1] FALSE
#> $`Global Encoding`$`Waveform Data Packets External`
#> [1] FALSE
#> $`Global Encoding`$`Synthetic Return Numbers`
#> [1] FALSE
#> $`Global Encoding`$WKT
#> [1] TRUE
#> $`Global Encoding`$`Aggregate Model`
#> [1] FALSE
#> $`Project ID - GUID`
#> [1] "00000000-0000-0000-0000-000000000000"
#> $`Version Major`
#> [1] 1
#> $`Version Minor`
#> [1] 4
#> $`System Identifier`
#> [1] "Quantum Spatial"
#> $`Generating Software`
#> [1] "LiDAR Suite"
#> $`File Creation Day of Year`
#> [1] 241
#> $`File Creation Year`
#> [1] 2019
#> $`Header Size`
#> [1] 375
#> $`Offset to point data`
#> [1] 519
#> $`Number of variable length records`
#> [1] 2
#> $`Point Data Format ID`
#> [1] 6
#> $`Point Data Record Length`
#> [1] 30
#> $`Number of point records`
#> [1] 71656308
#> $`Number of points by return`
#> [1] 38258506 20321461 9495283 2905490 585391 81327 8188 617
#> [9] 45 0 0 0 0 0 0
#> $`X scale factor`
#> [1] 0.01
#> $`Y scale factor`
#> [1] 0.01
#> $`Z scale factor`
#> [1] 0.01
#> $`X offset`
#> [1] 0
#> $`Y offset`
#> [1] 0
#> $`Z offset`
#> [1] 0
#> $`Max X`
#> [1] 433811.7
#> $`Min X`
#> [1] 432660.4
#> $`Max Y`
#> [1] 3869133
#> $`Min Y`
#> [1] 3867738
#> $`Max Z`
#> [1] 2155.38
#> $`Min Z`
#> [1] 1796.07
#> $`Variable Length Records`
#> $`Variable Length Records`$NIIRS10
#> $`Variable Length Records`$NIIRS10$reserved
#> [1] 0
#> $`Variable Length Records`$NIIRS10$`user ID`
#> [1] "NIIRS10"
#> $`Variable Length Records`$NIIRS10$`record ID`
#> [1] 4
#> $`Variable Length Records`$NIIRS10$`length after header`
#> [1] 10
#> $`Variable Length Records`$NIIRS10$description
#> [1] "NIIRS10 Timestamp"
#> $`Variable Length Records`$NIIRS10
#> $`Variable Length Records`$NIIRS10$reserved
#> [1] 0
#> $`Variable Length Records`$NIIRS10$`user ID`
#> [1] "NIIRS10"
#> $`Variable Length Records`$NIIRS10$`record ID`
#> [1] 1
#> $`Variable Length Records`$NIIRS10$`length after header`
#> [1] 26
#> $`Variable Length Records`$NIIRS10$description
#> [1] "NIIRS10 Tile Index" rlas::read.lasheader("~/Téléchargements/issue 43/34111H6117.las")
#> $`File Signature`
#> [1] "LASF"
#> $`File Source ID`
#> [1] 0
#> $`Global Encoding`
#> $`Global Encoding`$`GPS Time Type`
#> [1] TRUE
#> $`Global Encoding`$`Waveform Data Packets Internal`
#> [1] FALSE
#> $`Global Encoding`$`Waveform Data Packets External`
#> [1] FALSE
#> $`Global Encoding`$`Synthetic Return Numbers`
#> [1] FALSE
#> $`Global Encoding`$WKT
#> [1] TRUE
#> $`Global Encoding`$`Aggregate Model`
#> [1] FALSE
#> $`Project ID - GUID`
#> [1] "00000000-0000-0000-0000-000000000000"
#> $`Version Major`
#> [1] 1
#> $`Version Minor`
#> [1] 4
#> $`System Identifier`
#> [1] "Quantum Spatial"
#> $`Generating Software`
#> [1] "LiDAR Suite"
#> $`File Creation Day of Year`
#> [1] 241
#> $`File Creation Year`
#> [1] 2019
#> $`Header Size`
#> [1] 375
#> $`Offset to point data`
#> [1] 519
#> $`Number of variable length records`
#> [1] 2
#> $`Point Data Format ID`
#> [1] 6
#> $`Point Data Record Length`
#> [1] 30
#> $`Number of point records`
#> [1] 71656308
#> $`Number of points by return`
#> [1] 38258506 20321461 9495283 2905490 585391 81327 8188 617
#> [9] 45 0 0 0 0 0 0
#> $`X scale factor`
#> [1] 0.01
#> $`Y scale factor`
#> [1] 0.01
#> $`Z scale factor`
#> [1] 0.01
#> $`X offset`
#> [1] 0
#> $`Y offset`
#> [1] 0
#> $`Z offset`
#> [1] 0
#> $`Max X`
#> [1] 433811.7
#> $`Min X`
#> [1] 432660.4
#> $`Max Y`
#> [1] 3869133
#> $`Min Y`
#> [1] 3867738
#> $`Max Z`
#> [1] 2155.38
#> $`Min Z`
#> [1] 1796.07
#> $`Variable Length Records`
#> $`Variable Length Records`$NIIRS10
#> $`Variable Length Records`$NIIRS10$reserved
#> [1] 0
#> $`Variable Length Records`$NIIRS10$`user ID`
#> [1] "NIIRS10"
#> $`Variable Length Records`$NIIRS10$`record ID`
#> [1] 4
#> $`Variable Length Records`$NIIRS10$`length after header`
#> [1] 10
#> $`Variable Length Records`$NIIRS10$description
#> [1] "NIIRS10 Timestamp"
#> $`Variable Length Records`$NIIRS10
#> $`Variable Length Records`$NIIRS10$reserved
#> [1] 0
#> $`Variable Length Records`$NIIRS10$`user ID`
#> [1] "NIIRS10"
#> $`Variable Length Records`$NIIRS10$`record ID`
#> [1] 1
#> $`Variable Length Records`$NIIRS10$`length after header`
#> [1] 26
#> $`Variable Length Records`$NIIRS10$description
#> [1] "NIIRS10 Tile Index"
#> $`Extended Variable Length Records`
#> $`Extended Variable Length Records`$`WKT OGC CS`
#> $`Extended Variable Length Records`$`WKT OGC CS`$reserved
#> [1] 0
#> $`Extended Variable Length Records`$`WKT OGC CS`$`user ID`
#> [1] "LASF_Projection"
#> $`Extended Variable Length Records`$`WKT OGC CS`$`record ID`
#> [1] 2112
#> $`Extended Variable Length Records`$`WKT OGC CS`$`length after header`
#> [1] 915
#> $`Extended Variable Length Records`$`WKT OGC CS`$description
#> [1] "WKT Projection"
#> $`Extended Variable Length Records`$`WKT OGC CS`$`WKT OGC COORDINATE SYSTEM`
#> [1] "COMPD_CS[\"NAD83(2011) / UTM zone 12N + NAVD88 height - Geoid12B (meters)\",PROJCS[\"NAD83(2011) / UTM zone 12N\",GEOGCS[\"NAD83(2011)\",DATUM[\"NAD83 (National Spatial Reference System 2011)\",SPHEROID[\"GRS 1980\",6378137,298.257222101,AUTHORITY[\"EPSG\",\"7019\"]],AUTHORITY[\"EPSG\",\"1116\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"6318\"]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"latitude_of_origin\",0],PARAMETER[\"central_meridian\",-111],PARAMETER[\"scale_factor\",0.9996],PARAMETER[\"false_easting\",500000],PARAMETER[\"false_northing\",0],UNIT[\"meter\",1,AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"X\",EAST],AXIS[\"Y\",NORTH],AUTHORITY[\"EPSG\",\"6341\"]],VERT_CS[\"NAVD88 height - Geoid12B (meters)\",VERT_DATUM[\"North American Vertical Datum 1988\",2005,AUTHORITY[\"EPSG\",\"5103\"]],UNIT[\"meter\",1,AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"Up\",UP],AUTHORITY[\"EPSG\",\"5703\"]]]" Created on 2021-03-21 by the reprex package (v1.0.0) |
Hello, I encounter this error: LASlib internal error. See message above. Can you help me? Thank you, |
It does not work is not enough to help. Please open an issue |
Hi @Jean-Romain
Last week a local National Forest received some lidar data acquired by Quantum Spatial in 2018 as part of the US Forest Service-US Geologic Survey (USFS-USGS) partnership (a 3DEP acquisition) and while I can confirm that it opens in everything else I have (e.g., CloudCompare, ENVI, GlobalMapper, LAStools, etc) when I try and open some (not all) of the las files (unaltered, as delivered by the vendor) in windows I get the following error:
An example file can be downloaded here: https://drive.google.com/open?id=1-gXI9di34qOvz3BQAqSx7EBwQOiZ8c5l
I can also confirm that this problem appears to be windows specific, as the offensive file(s) open fine on my linux machine. I can also confirm that clipping/filtering with
las2las
and saving also creates a file that can then be read byrlas
with no errors, and using the non-commercial versions oflasclip
andlasthin
read it fine and create non-error files… alsolasinfo -i *.las -repair
doesn't seem to fix the issue either.The text was updated successfully, but these errors were encountered: