Performs chacks on the values and properties of a water body

check_water_bodies(wb)

Arguments

wb

a SpatVect object representing the water bodies.

Value

TRUE if completes else failure message

Details

The processing checks of the required properties of the water body for use in dynatopGIS: - uid: unique character uid - class: numeric - slope: positive numeric - width: positive numeric - depth: positive numeric

Examples

wbFile <- system.file("extdata", "gis", "SwindaleRiverNetwork.gpkg",
                       package="dynatop", mustWork = TRUE)
wb <- terra::vect(wbFile)
wb <- terra::buffer(wb,5)
wb$uid <- paste0("wb",seq_len(nrow(wb)))
wb$slope <- 1e-3
wb$class <- 1
wb$width <- 1
wb$depth <- 0.1
check_water_bodies(wb)