Bounding box of a LAS* object. st_bbox() extends sf, and ext() extends terra. The values returned are similar to their parent functions.
## S3 method for class 'LAS'st_bbox(obj,...)## S3 method for class 'LASheader'st_bbox(obj,...)## S3 method for class 'LAScatalog'st_bbox(obj,...)## S3 method for class 'LAScluster'st_bbox(obj,...)## S4 method for signature 'LAS'ext(x,...)## S4 method for signature 'LASheader'ext(x,...)## S4 method for signature 'LAScatalog'ext(x,...)## S4 method for signature 'LAScluster'ext(x,...)
Arguments
obj, x: An object of class LAS*.
...: unused
Returns
A bbox from sf, or a SpatExtent from terra.
Examples
f <- system.file("extdata","example.las", package="rlas")las <- readLAS(f)st_bbox(las)ext(las)