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, extent() extends raster, bbox() extends sp, 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'
extent(x, ...)

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

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

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

## 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, ...)

## S4 method for signature 'LAS'
bbox(obj)

## S4 method for signature 'LASheader'
bbox(obj)

## S4 method for signature 'LAScatalog'
bbox(obj)

## S4 method for signature 'LAScluster'
bbox(obj)

Arguments

obj, x

An object of class LAS*.

...

unused

Value

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

Examples

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

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

lidR documentation built on Sept. 8, 2023, 5:10 p.m.