Skip to content

Commit

Permalink
Fix #285
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Romain committed Oct 1, 2019
1 parent e42061b commit 326ec22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

7. The NAs are now correctly interpreted when writing a GDAL virtual raster [#283](https://github.com/Jean-Romain/lidR/issues/283).

8. Fix `lasmergespatial()` with on disk raster [#285](https://github.com/Jean-Romain/lidR/issues/285).

## lidR v2.1.3 (Release date: 2019-09-10)

#### NEW FEATURES
Expand Down
2 changes: 1 addition & 1 deletion R/lasmergespatial.r
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,6 @@ lasmergeSpatialPolygonDataFrame = function(las, shapefile, attribute = NULL)
lasmergeRasterLayer = function(las, raster)
{
cells <- raster::cellFromXY(raster, coordinates(las))
return(raster@data@values[cells])
return(raster[cells])
}

0 comments on commit 326ec22

Please sign in to comment.