shp2cat {hyfo}R Documentation

Get a catchment object from selected shape file.

Description

Get a catchment object from selected shape file.

Usage

shp2cat(filePath)

Arguments

filePath

A string representing the path of the shape file.

Details

This function is based on the package sf and sp, and the output comes from the package sp

Value

A catchment object can be used in getSpatialMap().

References

Examples

#open internal file
file <- system.file("extdata", "testCat.shp", package = "hyfo")
catchment <- shp2cat(file)

# More examples can be found in the user manual on https://yuanchao-xu.github.io/hyfo/


[Package hyfo version 1.4.6 Index]