remove_roads | R Documentation |
Removes roads from a DEM
remove_roads(DEM_file, road_shapefile, basin_shapefile)
DEM_file |
Required. ArcGIS .asc file. |
road_shapefile |
Required. Shapefile of roads buffered to road widths. |
basin_shapefile |
Required. Shpefile of basin boundary. |
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.
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.
## Not run: remove_roads("basin5.asc", "basin5_roads.shp", "basin5_boundary.shp")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.