powered by
This functions creates a blank SpatRaster based on the spatial extent of a sf object.
SpatRaster
sf
blank.raster(x, res)
sf::st_sf() object.
sf::st_sf()
numeric vector specifying resolution of the output raster in the x and y dimensions. If vector is of length one, then the pixels are assumed to be square.
numeric
vector
if (FALSE) { # make sf data polys <- sim.pus(225L) # make raster from sf blank.raster(polys, 1) }
Run the code above in your browser using DataLab