acc_vec2fric: acc_vec2fric

Description Usage Arguments Examples

View source: R/acc_vec2fric.R

Description

This function converts vector data into a raster layer containing travel speeds that can be used to create a friction map.

Usage

1
2
3
4
5
6
7
  acc_vec2fric(
  my_input,
  my_baselayer,
  my_speed = NULL,
  my_speedfield = NULL,
  my_datatype = "UInt16"
  )

Arguments

my_input

An input layer for the conversion. Should be of type SpatialPolygons(sp)

my_baselayer

A baselayer that defines resolution, extent and projection system of the friction map. Should be of class raster(raster). Most commonly a layer containing land-use values.

my_speed

Travel speed in km/h that applies to all polygons in this layer. If the travelspeed of polygons differs depending on a certain feature (e.g. paved/unpaved roads) use my_speedfield instead

my_speedfield

Column name of the input layer that contains travel speeds for the different polygons in km/h

my_datatype

GeoTiff datatype for temporary storage of data. Defaults to UInt16 storing integer values. For details see GDAL documentation.

Examples

1

mapme-initiative/mapme.accessibility documentation built on March 3, 2021, 12:33 a.m.