# \donttest{
# Load example LAS file
LASfile <- system.file("extdata", "ALS_Clip.laz", package="spanner")
las <- readLAS(LASfile)
# Download NAIP for a LAS file
naip_path <- download_naip_for_las(las, output_path = tempfile(fileext = ".tif"))
# Download with buffer and specific year range
naip_path2 <- download_naip_for_las(las, buffer = 10,
output_path = tempfile(fileext = ".tif"),
year_range = c("2020-01-01", "2023-12-31"))
# Then use with colorize_las
las_colored <- colorize_las(las, method = "rgb", raster_path = naip_path)
# }
Run the code above in your browser using DataLab