The function calculates the distance from a set of points to all cells of a RasterLayer.
The distance unit is in meters if the RasterLayer is not projected (+proj=longlat) and in map units (typically meters) when it is projected.
Usage
distanceFromPoints(object, xy, filename='', ...)
Arguments
object
RasterLayer object
xy
Matrix of x and y coordinates, or a SpatialPoints* object.
filename
Filename for the output RasterLayer
...
Additional arguments. See Details.
Value
A RasterLayer object
Details
The following additional arguments can be passed, to replace default values for this function
rll{
format Character. Output file type. See writeRasterdatatype Character. Output data type. See dataTypeoverwrite Logical. If TRUE, "filename" will be overwritten if it exists
progress Character. "text", "window", or "" (the default, no progress bar)
}