st_coordinates {lidR} | R 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)
[Package lidR version 4.1.2 Index]