| st_bbox {lidR} | R Documentation |
Bounding box of a LAS* object
Description
Bounding box of a LAS* object. st_bbox() extends sf, and ext() extends terra. The values returned are similar to their
parent functions.
Usage
## 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 |
... |
unused |
Value
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)
[Package lidR version 4.1.2 Index]