gdalRasterise: Faster rasterisation of shapefile to raster using gdal

View source: R/gdal_raster_functions.R

gdalRasteriseR Documentation

Faster rasterisation of shapefile to raster using gdal

Description

Faster rasterisation of shapefile to raster using gdal

Usage

gdalRasterise(
  shp,
  rast,
  res = NULL,
  ext = NULL,
  pixels = NULL,
  variable = NULL,
  invert = FALSE,
  return.raster = TRUE
)

Arguments

shp

local shapefile or file path of the inpath raster

rast

local shapefile or file path of the output raster

res

resolution of cells x and y.

ext

extent of raster xmin, xmax, ymin, ymax.

variable

what variable to convert to a raster

invert

If TRUE rasterise the inverse of the shapefile. Default is FALSE.

return.raster

return raster? Default is TRUE and function will return a raster object

pixel

Number of pixels in x and y direction. This is an alternative to res.


skiptoniam/sense documentation built on March 18, 2023, 4:36 a.m.