Computes runnout attributes: width, length, area, max. min. elevation, and surface area using Spatial Polygons and a DEM

runoutGeom(runout_plys, elev, ID = NULL)

Arguments

runout_plys

A SpatialPolygonsDataFrame of runout tracks

elev

A RasterLayer DEM

ID

NOT SURE...

Value

A data frame containing runout geometries

Examples

# Load elevation model (DEM) dem <- raster::raster(system.file("extdata/elev_12_5m.tif", package="runout.opt")) # Load runout polygons file_nm <- system.file("extdata/dflow_runout_ply.shp", package="runout.opt") slide_plys <- rgdal::readOGR(file_nm)
#> OGR data source with driver: ESRI Shapefile #> Source: "/home/jason/R/x86_64-pc-linux-gnu-library/4.0/runout.opt/extdata/dflow_runout_ply.shp", layer: "dflow_runout_ply" #> with 6 features #> It has 27 fields #> Integer64 fields read as strings: FID_1 OBJECTID OBJECTID_1 FID_2 OBJECTID_2 ID ID_COL Dif_rango
#> Warning: Z-dimension discarded
slide_geom <- runoutGeom(slide_plys, dem) slide_geom
#> fid id width length area surfacearea maxelev minelev reachangle #> 1 0 1 465.2282 2758.220 524921.5 588836.5 3635 2205 27.40450 #> 2 1 2 307.4041 2811.722 138838.5 159381.3 3755 2227 28.52140 #> 3 2 3 527.2579 3116.045 652965.1 748991.1 4000 2186 30.20575 #> 4 3 4 382.0606 2690.692 197743.9 217936.0 3577 2219 26.78021 #> 5 4 5 276.1625 2641.502 177993.7 196479.0 3479 2212 25.62477 #> 6 5 6 195.9905 1761.484 201892.2 238286.3 3194 2172 30.12198