Closed Jean-Romain closed 5 years ago
See also https://github.com/Jean-Romain/lidR/issues/219. Function check_las_validity could be more tolerant with the specification and allow to write numbers up to 2⁷-1.
check_las_validity
is_valid_ScanAngleRank
is_compliant_ScanAngleRank
library(rlas) lazfile <- system.file("extdata", "example.laz", package="rlas") lasdata <- read.las(lazfile) header <- read.lasheader(lazfile) lasdata$ScanAngleRank[1] <- 91L f <- tempfile(fileext = ".las") write.las(f, header, lasdata) #> Error: Invalid data: ScanAngleRank greater than 90
@pobsteta
@pobsteta install rlas 1.3.2 from github.
rlas 1.3.2
See also https://github.com/Jean-Romain/lidR/issues/219. Function
check_las_validity
could be more tolerant with the specification and allow to write numbers up to 2⁷-1.is_valid_ScanAngleRank
to allow range of [-127, +127]is_compliant_ScanAngleRank
to warn about rank out of [-90, +90]@pobsteta