View source: R/gdal_raster_functions.R
gdalRasterise | R Documentation |
Faster rasterisation of shapefile to raster using gdal
gdalRasterise( shp, rast, res = NULL, ext = NULL, pixels = NULL, variable = NULL, invert = FALSE, return.raster = TRUE )
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.