st_bbox: Bounding box of a LAS* object

st_bboxR 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 LAS*.

...

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)

lidR documentation built on Sept. 11, 2024, 5:21 p.m.