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) }

Try the lidR package in your browser

Any scripts or data that you put into this service are public.

lidR documentation built on Sept. 11, 2024, 5:21 p.m.