Skip to content

Commit

Permalink
Fix #742
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Romain committed Feb 29, 2024
1 parent 29cb72f commit d7f27b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Fix: `readLAScatalog()` was not working if package `raster` was not installed.
Fix: regression of the `stars` package makes `rasterize_terrain()` extremely slow and blow up the RAM memory
New: `catalog_intersects()` support a `SpatExtent`
Fix: `lidR` can fully works without `raster` ans `sp`
Fix: [#742](https://github.com/r-lidar/lidR/discussions/742)

## lidR v4.1.0 (Release date: 2024-01-31)

Expand Down
4 changes: 3 additions & 1 deletion R/engine_crop.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ engine_crop <- function(x, bbox)
engine_crop.LAS <- function(x, bbox)
{
buffer <- NULL
return(filter_poi(x, buffer == LIDRNOBUFFER))
x <- filter_poi(x, buffer == LIDRNOBUFFER)
if (is.empty(x)) return(NULL)
return(x)
}

#' @export
Expand Down

0 comments on commit d7f27b4

Please sign in to comment.