Closed jhollist closed 2 years ago
Same problem for me with a relatively small region. It gives the error message "Merging DEMs Error in compareRaster(x, extent = FALSE, rowcol = FALSE, orig = TRUE, : different resolution".
@RonjaRaeningidottir Can you provide the bounding box for the region you are trying to access? Thanks!
Hei @jhollist , my input is:
RegionDEM <- get_elev_raster(RegionCrop, prj = prj_4326, z = 12, expand = 0.1, # extending by 0.2 degrees here clip = "bbox", verbose = T)
with
RegionCrop lon lat 44.11283 40.18608 44.11283 40.28358 44.17158 40.18608 44.17158 40.28358
Hope this helps, really like the package:)
@RonjaRaeningidottir Sorry for the massive delay in responding, but I am finally getting around to going through old issues. I just tested your code and it seems to be working. I think this is now fixed and I am going to close the issue. If you are still having the same issue, let me know and we can reopen the issue.
Reported by Adrien Foutelet (Thanks!)
Some areas appear to be reutrning rasters of different resolution on the same request. Need to track down reason why (source of different resolution???)
Example that recreates error: