V2.1.1
lidR v2.1.1 (Release date: 2019-08-06)
NEW FEATURES
- #266
lasmetrics
has now a dispatch toLAS
andLAScluster
cluster objects. It means thatlasmetrics
can be used withcatalog_apply
in some specific cases where it has a meaning (see also #266):
opt_chunk_buffer(ctg) <- 0
opt_chunk_size(ctg) <- 0
opt_filter(ctg) <- "-keep_first"
opt_output_files(new_ctg) <- ""
output <- catalog_apply(new_ctg, lasmetrics, func = .stdmetrics)
output <- data.table::rbindlist(output)
ENHANCEMENT
-
lastrees
now uses S3 dispatcher system. When trying to use it with aLAScatalog
object, user will have a standard R message to state thatLAScatalog
is not supported instead of an uninformative message that state that 'no slot of name "header" for this object of class "LAScatalog"' -
Internal code has been modifiy to drastically reduce probability of name intersection in
catalog_apply()
. For example, the use of a function that have a parameterp
incatalog_apply()
failed because of partial matching between the true argumentp
and the internal argumentprocessing_option
. -
lasfilterdecimate
with algorithmhighest
is now more than 20 times faster.lasfiltersurfacepoints
, being a proxy of this algorithm, had the same speed-up -
plot
forLAS
objects gained the pan capability.
FIXES
- #267. A dummy character was introduced by mistake in a variable name breaking the automatic exportation of user object in
grid_metrics
when used with a parallelized plan (tree_metrics
was also affected).