Skip to content

Commit

Permalink
Fix #689
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Romain committed Aug 16, 2023
1 parent fdc851b commit a859fc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ If you are viewing this file on CRAN, please check [the latest news on GitHub](h
## lidR v4.0.4 (Release date: ----------)

- Fix: interpolation of NA pixels failed when a single pixel is missing [#684](https://github.com/r-lidar/lidR/issues/684)
- Fix: [#694](https://github.com/r-lidar/lidR/issues/594). `silva2016` can load (not too big) ondisk chm on the fly.
- Fix: [#690](https://github.com/r-lidar/lidR/issues/690). `rasterize_terrain()` works in parallel with `res = <SpatRaster>`.
- Fix: [#694](https://github.com/r-lidar/lidR/issues/594) `silva2016` can load (not too big) ondisk chm on the fly.
- Fix: [#690](https://github.com/r-lidar/lidR/issues/690) `rasterize_terrain()` works in parallel with `res = <SpatRaster>`.
- Fix: [#689](https://github.com/r-lidar/lidR/issues/689) attributes are not renamed when filtering a point cloud.

## lidR v4.0.3 (Release date: 2023-03-09)

Expand Down
2 changes: 1 addition & 1 deletion R/methods-LAS.R
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ smart_subset <- function(las, i)
attr <- attr[!attr %in% c("X", "Y", "Z")]
for (name in attr) new_data[[name]] <- data[[name]][i]

new_las <- LAS(new_data, las@header, st_crs(las), FALSE, las@index)
new_las <- LAS(new_data, las@header, st_crs(las), FALSE, las@index, no_attr_name_check = TRUE)
new_las <- las_update(new_las)
return(new_las)
}

0 comments on commit a859fc0

Please sign in to comment.