dist_to_sf_raster: Function create raster of distance to an sf/sp object.

Description Usage Arguments

View source: R/dist_to_sf_raster.R

Description

Note that if a line/polygon sf object is provided, it is first rasterized to the reference raster and distance to the raster centroid of the cell in which the line passes through is used as the line coordinate.

Usage

1
dist_to_sf_raster(sf_obj, ref_raster)

Arguments

sf_obj

An sf or sp object to calculate distance to

ref_raster

a reference raster with the extent and resolution of


disarm-platform/DiSARM documentation built on March 4, 2020, 3:49 p.m.