Description Usage Arguments Details Value Examples
Rasterize set of sf objects (polygon or mulitpolygon)
1 | rasterize.sf(x, y, ...)
|
x |
an sf object with a geometry of POLYGON or MULTIPOLYGON |
y |
RasterLayer object (raster template) |
... |
See |
See fasterize
for more details.
A raster of the same size, extent, resolution and projection as the provided raster template
1 2 | x <- read_sf(system.file("shape/nc.shp", package="sf"))
rasterize(x, raster(x))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.