gdal_utils warp error
Closed this issue · 4 comments
This errors:
get_elev_point(data.frame(x = c(20,20,-20,-20), y = c(20,-20,20,-20)), src = "aws", z = 7, prj = "EPSG:4326")
These don't:
get_elev_point(data.frame(x = c(10,10,-10,-10), y = c(10,-10,10,-10)), src = "aws", z = 7, prj = "EPSG:4326")
get_elev_point(data.frame(x = c(20,20,-20,-20), y = c(20,-20,20,-20)), src = "aws", z = 6, prj = "EPSG:4326")
ext_sample <- extent(70,105,25,45)
bg_init <- raster(ext = ext_sample, resolution = 0.01)
bg_rst <- get_elev_raster(bg_init, z = 5)
error:
Mosaicing & Projecting
Error in sf::gdal_utils(util = "warp", source = files, destination = destfile, :
gdal_utils warp: an error occured
I can't search for the same error like this.
Thanks for this. Still need to look at this and will do so next time I get back to elevart
Something with furrr and tempfiles seems to be the culprit. Running my example above with serial = TRUE seems to fix the issue.
Figured this one out. Larger areas, would make requests in parallel with furrr. When I changed everything back to a single processor the temporary files got lost and the warp failed.