Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

check

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)

Arguments

header

a list containing the header of a las file

data

a data.frame or a data.table containing a point cloud


rlas

Read and Write 'las' and 'laz' Binary File Formats Used for Remote Sensing Data

v1.4.0
GPL-3
Authors
Jean-Romain Roussel [aut, cre, cph], Florian De Boissieu [aut, ctb] (Enable the support of .lax file and extra byte attributes), Martin Isenburg [cph] (Is the author of the LASlib and LASzip libraries), David Auty [ctb] (Reviewed the documentation), Pierrick Marie [ctb] (Helped to compile LASlib code in R), Tiago de Conto [ctb] (Implemented the -thin_with_voxel filter method)
Initial release
2021-03-21

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.