View source: R/Calculate_distances_functions.R
Get characteristics of data regarding the reference raster
1 2 3 4 5 6 | distref.data(
data.pt,
r.ref,
closest = FALSE,
longlat = raster::isLonLat(r.ref)
)
|
data.pt |
Point data set. May be a 2-col matrix of (x,y) coordinates or a SpatialPointDataFrame. Should be in same projection than r.ref |
r.ref |
Reference raster |
closest |
if a point is over an obstacle, set to TRUE to find the closest non-obstacle r.ref cell |
longlat |
Logical. if FALSE, Euclidean distance, if TRUE Great Circle distance. Defined from r.ref. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.