Skip to content
forked from r-lidar/lidR

R package for airborne LiDAR data manipulation and visualisation for forestry application

License

Unknown, GPL-3.0 licenses found

Licenses found

Unknown
LICENCE
GPL-3.0
COPYING
Notifications You must be signed in to change notification settings

pdbentley/lidR2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

R package for airborne LiDAR data manipulation and visualisation for forestry applications

lidR package provides functions to read and write .las and .laz files, plot a cloud of points, compute metrics using an area-based approach, compute digital canopy models, thin lidar data, automatically extract ground inventories, process a set of tiles in multicore, classify data from shapefiles and provides other tools to manipulate liDAR data. lidR package is designed mainly for research purposes using an area-based approach.

lidR provides an open-source and R-based implementation of the main functions from software like FUSION or lastools. lidR is flexible because it allows the user to program their own tools rather rely on a set of predefined tools.

Install lidR from github

Since version 1.1.0 the package contains C++ code. The process to install the package from github for Windows users is more complex than before as you need developpement tools to be able to compile C++ code. Windows users can download and install a binary version of the package (not necesseraly up-to date).

Install development tools

Linux users

Install R development package sudo apt-get install r-base-dev

Windows users

Install Rtools: https://cran.r-project.org/bin/windows/Rtools/

Mac users

I can't help you. Reading documentation seems prohibited for non mac user. Read this page: https://www.rstudio.com/products/rpackages/devtools/

Install dependencies

installed.packages(c("methods","magrittr","dtplyr","rgl","reshape2","tools","parallel","fields","raster","rgdal","plyr","rgeos","data.table","dplyr","sp","Rcpp"))

Install from github with devtools

install.packages("devtools")
devtools::install_github("Jean-Romain/lidR")
library(lidR)

Note for Windows users : tested on Windows 7. Installation might work as well as for GNU/Linux. But maybe not... Windows behaviours are... unpredictable.

Features

Some examples

Plot data

lidar = LoadLidar("myfile.las")
plot(lidar)

Compute a simple metric

metric = gridMetrics(lidar, 20, mean(Z))
plot(metric)

Changelog v1.1.0

  • Function classifyFromShapefile is, at least, 3 times faster. Parts of the function have been rewritten in C++. The new column is added by reference
  • Include the Martin Isenburg source code of LASlib and LASzip.
  • Function readLAs have been rewritten in C++ using LASlib. It is 2 times faster and it's safer.
  • Add function writeLAS using LASlib.
  • Support of compressed .laz format in readLAS and writeLAS thanks to LASlib and LASzip.
  • Function readLAS replace loadLidar.
  • Objects Lidar do not exist anymore. They are called LAS. It does not change anything for users.

About

R package for airborne LiDAR data manipulation and visualisation for forestry application

Resources

License

Unknown, GPL-3.0 licenses found

Licenses found

Unknown
LICENCE
GPL-3.0
COPYING

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 90.1%
  • R 9.9%