The extent of orig_raster and the returned object should be the same.
The resolution of orig_raster and the returned object should be the same.
If the extents and resolution of orig_raster and the returned object are not the same, the function should return an error message saying which characteristic (extent or resolution) are not the same.
' @description Align a raster to the extent and resolution of the worldpop rasters and GADM shapefiles
' @param datapath path to input data
' @param country country code
' @param orig_raster Raster* object that should be aligned to that in WorldPop and GADM
' @return Raster* object with aligned extent and resolution at country level
' @export
' @include load_shapefile_by_country.R load_worldpop_by_country.R
Tests