R: Check if data and headers respect the LAS specification

check_las_validity {rlas} | R Documentation

## Check if data and headers respect the LAS specification

### Description

las files are normalized files. These functions perform tests of compliance with LAS specification.

- `check_las_validity` tests if the data and the header contain information that cannot be written into a las file. For example it tests is the intensities do not exeed 65535. It throws an error for each deviance to the specification. It is useful for testing if modified R objects are still valid.

- `check_las_compliance` test if the data and the header contain information that can be written into a las file but are invalid with repect of the specification. For example it test if the RGB colors are recoded on 16 bits. It is possible to store colors recorded on 8 bits (0 to 255) but it is not correct to do that. It throws a warning for each deviance to the specification. It is useful for testing if the data read from a file are correct.

### Usage

    check_las_validity(header, data)

    check_las_compliance(header, data)

    check_data_vs_header(header, data, ...)

### Arguments

`header` | a list containing the header of a las file
`data` | a data.frame or a data.table containing a point cloud
`...` | internal use only

[Package rlas version 1.3.2 Index]