inst/tinytest/test-readheader.R

lazfile <- system.file("extdata", "example.las", package = "rlas")
header <- read.lasheader(lazfile)

# "read.lasheader read the header", {

expect_equal(header[["Point Data Format ID"]], 1L)
expect_equal(header[["Number of point records"]], 30L)
expect_equal(header[["Number of points by return"]], c(26, 4, 0, 0, 0))
expect_equal(header[["System Identifier"]], "LAStools (c) by rapidlasso GmbH")
Jean-Romain/rlas documentation built on April 17, 2024, 1:25 p.m.