Description Usage Arguments Value
View source: R/contour_to_raster.R
Convert a shapefile with contours to a raster
1 2 | contour_2_raster(contour_sf, raster_attribute, n_samples = 10000, nrow,
ncol)
|
contour_sf |
an sf object read from a shapefile with contours, eg elevation. |
raster_attribute |
The name of the attribute to be rastered |
n_samples |
the number of contour points to be sampled for raster interpolation |
nrow |
number of rows in the raster grid |
ncol |
number of columns in the raster grid |
a raster
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.