lidR (version 4.1.1)

st_bbox: 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 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 ext(x, ...)

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

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

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

Value

A bbox from sf, 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)
ext(las)

Run the code above in your browser using DataLab