distref.data: Get characteristics of data regarding the reference raster

Description Usage Arguments

View source: R/Calculate_distances_functions.R

Description

Get characteristics of data regarding the reference raster

Usage

1
2
3
4
5
6
distref.data(
  data.pt,
  r.ref,
  closest = FALSE,
  longlat = raster::isLonLat(r.ref)
)

Arguments

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.


statnmap/GeoDist documentation built on Feb. 4, 2020, 8:34 p.m.