contours_as_sfg: Convert output from the 'grDevices::contourLines()' function...

Description Usage Arguments Details Value

View source: R/utils.R

Description

Convert output from the grDevices::contourLines() function to an sf::sfc object

Usage

1
contours_as_sfg(lst, vals, crs = 4326)

Arguments

lst

List as returned from the grDevices::contourLines() function

vals

A vector of depth values to use. Each will be filtered and the returned list will hakev one element for each depth

crs

Coordinate reference system represented by an integer

Details

Creates a list of LINESTRING objects which represent contours on the BC coast. The data are transformed to NAD83 for congruence with the rest of this package.

Value

An sf::sfc object


pbs-assess/hakedata documentation built on Jan. 16, 2021, 9:15 p.m.