R/st_as_sf.R

Defines functions st_as_sf.LAScatalog st_as_sf.LAS

#' @importFrom sf st_as_sf
NULL

#' @export
st_as_sf.LAS = function(x, ...) { return(sf::st_as_sf(x@data, coords = c("X", "Y", "Z"), crs = st_crs(x))) }

#' @export
st_as_sf.LAScatalog = function(x, ...) { return(x@data) }
Jean-Romain/lidR documentation built on May 8, 2024, 3:02 a.m.