st_coordinates function

Coordinates of a LAS* object in a matrix form

Coordinates of a LAS* object in a matrix form

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

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

Returns

matrix

Examples

LASfile <- system.file("extdata", "example.laz", package="rlas") las <- readLAS(LASfile) sf::st_coordinates(las)
  • Maintainer: Jean-Romain Roussel
  • License: GPL-3
  • Last published: 2024-07-09