remove_roads: Removes roads from a DEM

View source: R/remove_roads.R

remove_roadsR Documentation

Removes roads from a DEM

Description

Removes roads from a DEM

Usage

remove_roads(DEM_file, road_shapefile, basin_shapefile)

Arguments

DEM_file

Required. ArcGIS .asc file.

road_shapefile

Required. Shapefile of roads buffered to road widths.

basin_shapefile

Required. Shpefile of basin boundary.

Value

If successful, returns TRUE. Writes several files, including 1) a .asc file of the DEM with missing values in place of the roads, 2) SAGA files (.sdat, .mgrd) contining the filled DEM, and 3) a .asc file of the filled DEM clipped to the basin boundary.

Note

This function uses the raster function mask to delete the DEM elements covered by the buffered roads, and RSAGA function rsaga.close.gaps to fill in the deleted DEM cells.

Examples

## Not run: remove_roads("basin5.asc", "basin5_roads.shp", "basin5_boundary.shp")

KevinShook/WDPMr documentation built on April 23, 2022, 12:32 a.m.