Read and write 'las' and 'laz' binary file formats. The LAS file format is a public file format for the interchange of 3-dimensional point cloud data between data users. The LAS specifications are approved by the American Society for Photogrammetry and Remote Sensing < https://www.asprs.org/committee-general/laser-las-file-format-exchange-activities.html>. The LAZ file format is an open and lossless compression scheme for binary LAS format versions 1.0 to 1.3 < https://www.laszip.org/>.
R package to read and write
.laz binary files used to store LiDAR data.
rlas relies on a modified version of the open source parts of LAStools.
LASzip were modified to be compatible with
R. The library can therefore be compiled into
R without any complaints from
R CMD check.
It enables users to read and write into R binary files commonly used to store LiDAR data in R both at the R level and at the C++ level.
To install the package from github make sure you have a working development environment.
Xcodefrom the Mac App Store.
lasdata = readlasdata("<myfile.las>")lasheader = readlasheader("<myfile.las>")
rlas into your c++ code.
// [[Rcpp::depends(rlas)]]// [[Rcpp::export]]List
rlas contains code written by both Jean-Romain Roussel and Martin Isenburg. The latter is included
for technical reasons. Details below.
rlascode enabling Martin Isenburg's code to be wrapped into R:
rlasat the C++ level.
writelaxenable for writing LAX files.
readlasdataenable for reading several files.
inst/includeto make the lib callable from other packages
lasdatareaderis twice faster reading files only once
readlasdataenable to load or not the gpstime field.
readlasdata()is able to read file when LAS specifications are not respected.
writelasperforms tests on the header before entering C++ code (enable to fail with informative errors).
readlasdata()gains a parameter
filterenabling to use memory optimized streaming filters.
readlasdata()support .lax file for faster filter (thanks to Florian de Boissieu #2)
readlasheader()is now able to read the
Variable length record
CRAN does not build binary packages. After exchanges with prof Bryan Ripley