parseregion: Parse region string or simple feature

View source: R/data2raster.R

parseregionR Documentation

Parse region string or simple feature

Description

This helper function parses whether region is provided as a string or as a simple feature. If the former, it loads the appropriate simple feature using the akgfmaps::get_base_layers function; if the latter, it re-projects the provided features to the specified coordinate reference system.

Usage

parseregion(nameorpoly, crs)

Arguments

nameorpoly

string specifying base layer name, or simple feature object

crs

coordinate reference system to apply to simple feature object

Value

simple feature object in the requested CRS


afsc-gap-products/coldpool documentation built on Sept. 14, 2024, 7:40 p.m.