Turns a 3D mesh file into a Digital Elevation Model (DEM) of class RasterLayer format.
Details
The function rasterizes uses the vertices of the mesh file.
If resolution is not
given, it is calculated by finding the maximum nearest neighbor
of vertices projected
on the xy
plane. fill
is used when irregular 3D meshes
result in NA
values in
raster cells. The default is to fill these cells with the
minimum, non-NA
raster value.