st_transform function

Transform or convert coordinates of LAS objects

Transform or convert coordinates of LAS objects

Transform or convert coordinates of LAS objects st_transform() extends sf::st_transform()

## S3 method for class 'LAS' st_transform(x, crs, ...)

Arguments

  • x,: An object of class LAS

  • crs: crs object from sf or CRS object from sp

  • ...: additional arguments scale and xoffset, yoffset, zoffset

    for the output LAS objects. It is not mandatory but recommended to consider providing such information. Otherwise it will be guessed automatically which might not be the best choice.

Returns

A LAS object

Examples

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