Skip to contents

Creates a new WhiteboxRaster object by reading raster data from a file into memory.

Creates a new WhiteboxVector object by reading vector data from an ESRI shapefile into memory.

Usage

wbw_read_raster(file_name)

wbw_read_vector(file_name)

Arguments

file_name

character, path to ESRI shapefile

Value

WhiteboxRaster object

WhiteboxVector object

Examples

f <- system.file("extdata/dem.tif", package = "wbw")
wbw_read_raster(f)
#> +-----------------------------------------------+ 
#> | WhiteboxRaster                                |
#> | dem.tif                                       |
#> |...............................................| 
#> | bands       : 1                               |
#> | dimensions  : 726, 800  (nrow, ncol)          |
#> | resolution  : 5.002392, 5.000243  (x, y)      |
#> | EPSG        : 2193  (Linear_Meter)            |
#> | extent      : 1925449 1929446 5582091 5585717 |
#> | min value   : 63.698193                       |
#> | max value   : 361.020721                      |
#> +-----------------------------------------------+