v2.2.1
lidR v2.2.1
BREAKING CHANGE
-
imager
was used to drive themcwatershed()
algorithm.imager
is an orphaned package that generated a warning on CRAN. Consequentlymcwatershed()
has been removed. In attempt to provide an informative message to users, the function still exists but generates an error. Anyway this method was weak and buggy and it was a good reason to remove it... -
In version 2.2.0 we missed to put the parameter
r
inpoint_metrics()
. It is not yet supported but will be.
NEW FEATURES
- LAScatalog processing engine:
- In
catalog_apply()
the optionsautomerge
now supports automerging ofsf
anddata.frame
objects. - New function
catalog_sapply()
strictly equivalent tocatalog_apply()
but with the optionautomerge = TRUE
enforced to simplify the output whenever it is possible.
- In
ENHANCEMENTS
-
In the catalog processing engine, the graphical progression map is now able to plot the actual shape of the chunks. In the case of
lasclip
it means that discs and polygons are displayed instead of bounding boxes. -
Multi-layers VRTs are returned as
RasterBrick
instead ofRasterStack
for consistency with in memory raster that are returns asRasterBrick
. -
grid_
functions now try to preserve the layer names when returning a VRT built from files written on disk. This works only with file formats that support to store layer name (e.g. notGTiff
). -
There are now more than 900 unit tests for a coverage of 91%.
FIXES
-
Fix access to not mapped memory in one unit test (consequentless for users).
-
In
lasclip()
the templateXCENTER
actually gave the Y coordinate. It is now the correct X coordinate of the center of the clipped region. -
In
lasclip()
the templateYCENTER
was not actually defined. It is now the correct Y coordinate of the center of the clipped region. -
Fix heap-buffer-overflow in
lasrangecorrection()
. The range was likely to be badly computed for points that have a gpstime later than the last sensor position