Learn R Programming

lidR (version 4.1.0)

st_coordinates: 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 LAS
st_coordinates(x, z = TRUE, ...)

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

Value

matrix

Arguments

x

A LAS* object

z

bool. Return XY or XYZ matrix

...

unused.

Examples

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

Run the code above in your browser using DataLab