I have a vector file which I want to rasterize and adjust its resolution to the reference map, in QGIS.
spatial_sync_raster function in R to set all the rasters into the same resolution as that of the reference raster layer. It worked but the result was not as good as expected, because the outputs came out with different resolutions (see examples below).
I want to set the resolution of "u" as that of "g".
u class : RasterLayer dimensions : 130, 228, 29640 (nrow, ncol, ncell) resolution : 0.01213899, 0.01213899 (x, y) extent : 12.111, 14.87869, 51.68928, 53.26734 (xmin, xmax, ymin, ymax) coord. ref. : +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0 g class : RasterLayer dimensions : 189, 332, 62748 (nrow, ncol, ncell) resolution : 0.008333333, 0.008333333 (x, y) extent : 12.10837, 14.87503, 51.7, 53.275 (xmin, xmax, ymin, ymax)
Does anyone know how to adjust the resolution whilst rasterizing the vector file?