create_raster: Create empty raster

View source: R/functions_rasterize.R

create_rasterR Documentation

Create empty raster

Description

Create empty raster from a bounding box with a specified projection.

Usage

create_raster(x, tile.size = 100)

Arguments

x

either a bounding box (see st_bbox) where the projection (crs) must be specified, or a raster object (where the elevation object is supposed to be used)

tile.size

cell size (which is both the width and the height) in meters (assuming the coordinate system is specified in meters)

Value

raster layer

Examples

# create raster
ZL_bbox <- sf::st_bbox(c(xmin = 4012000, ymin = 3077000, xmax = 4048000, ymax = 3117000),
    crs = sf::st_crs(3035))
ZL_raster <- create_raster(ZL_bbox)

MobilePhoneESSnetBigData/mobloc documentation built on Feb. 18, 2024, 3:41 a.m.