agg_upload.Rd
This function is called by the agg_upload module and loads a raster image.
agg_upload(shape, path, logger = NULL)
a SpatRaster object
path <- list.files(system.file("extdata/aggregation",
package="disagapp"), full.names = TRUE)
shp_file <- list.files(system.file("extdata/shapes",
package="disagapp"), pattern = ".shp", full.names = TRUE)
shape <- sf::st_read(shp_file, quiet = TRUE)
raster <- agg_upload(shape = shape, path = path)