Description Usage Arguments Examples
This function converts vector data into a raster layer containing travel speeds that can be used to create a friction map.
1 2 3 4 5 6 7 | acc_vec2fric(
my_input,
my_baselayer,
my_speed = NULL,
my_speedfield = NULL,
my_datatype = "UInt16"
)
|
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. |
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.