st_coordinates: Coordinates of a LAS* object in a matrix form

st_coordinatesR Documentation

Coordinates of a LAS* object in a matrix form

Description

Retrieve coordinates of a ⁠LAS*⁠ object in matrix form. It creates a copy of the coordinates because of the coercion from data.frame to matrix. This function inherits sf::st_coordinates

Usage

## S3 method for class 'LAS'
st_coordinates(x, z = TRUE, ...)

## S3 method for class 'LAScatalog'
st_coordinates(x, ...)

Arguments

x

A LAS* object

z

bool. Return XY or XYZ matrix

...

unused.

Value

matrix

Examples

LASfile <- system.file("extdata", "example.laz", package="rlas")
las <- readLAS(LASfile)
sf::st_coordinates(las)

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