Closed rhijmans closed 1 year ago
lidR::raster_bbox uses
lidR::raster_bbox
bbox <- terra::ext(raster) bbox <- bbox@ptr$vector names(bbox) <- c("xmin", "xmax", "ymin", "ymax")
That breaks with the development version of terra. The @ptr$ methods are not really safe for use in other packages. Can you use the "official" interface instead? In this case
bbox <- terra::ext(raster) bbox <- terra::as.vector(bbox)
Thanks!
sf::st_bbox() with latest version of sf seems to works properly on SpatRaster so I'm now using st_bbox(). Thanks.
sf::st_bbox()
sf
SpatRaster
st_bbox()
lidR::raster_bbox
usesThat breaks with the development version of terra. The @ptr$ methods are not really safe for use in other packages. Can you use the "official" interface instead? In this case
Thanks!