shp2cat: Get a catchment object from selected shape file.

View source: R/shp2cat.R

shp2catR 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

  • Roger Bivand, Tim Keitt and Barry Rowlingson (2015). rgdal: Bindings for the Geospatial Data Abstraction Library. R package version 1.0-4. https://CRAN.R-project.org/package=sf

  • R Core Team (2015). R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. URL https://www.R-project.org/.

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/


Yuanchao-Xu/hyfo documentation built on Aug. 29, 2023, 4:57 a.m.