Learn R Programming

lidR (version 4.0.4)

st_bbox: Bounding box of a LAS* object

Description

Bounding box of a LAS* object. st_bbox() extends sf, extent() extends raster, bbox() extends sp, and ext() extends terra. The values returned are similar to their parent functions.

Usage

# S3 method for LAS
st_bbox(obj, ...)

# S3 method for LASheader st_bbox(obj, ...)

# S3 method for LAScatalog st_bbox(obj, ...)

# S3 method for LAScluster st_bbox(obj, ...)

# S4 method for LAS extent(x, ...)

# S4 method for LASheader extent(x, ...)

# S4 method for LAScatalog extent(x, ...)

# S4 method for LAScluster extent(x, ...)

# S4 method for LAS ext(x, ...)

# S4 method for LASheader ext(x, ...)

# S4 method for LAScatalog ext(x, ...)

# S4 method for LAScluster ext(x, ...)

# S4 method for LAS bbox(obj)

# S4 method for LASheader bbox(obj)

# S4 method for LAScatalog bbox(obj)

# S4 method for LAScluster bbox(obj)

Value

A bbox from sf, an Extent from raster, a matrix from sp, or a SpatExtent from terra.

Arguments

obj, x

An object of class LAS*.

...

unused

Examples

Run this code
f <- system.file("extdata", "example.las", package="rlas")
las <- readLAS(f)

st_bbox(las)
bbox(las)
extent(las)
ext(las)

Run the code above in your browser using DataLab