Map GPS points to WWF/TNC terrestrial ecoregions
Source:R/points_to_ecoregions.R
points_to_ecoregions.Rd<a href="https://adrientaudiere.github.io/MiscMetabar/articles/Rules.html#lifecycle"> <img src="https://img.shields.io/badge/lifecycle-experimental-orange" alt="lifecycle-experimental"></a>
Assigns each GPS point (pair of longitude/latitude in decimal degrees, WGS84) to the WWF/TNC terrestrial ecoregion, biome and realm that contains it.
Arguments
- longitudes
(numeric vector). Longitudes of the points to locate, in decimal degrees in `[-180, 180]`.
- latitudes
(numeric vector). Latitudes of the points to locate, in decimal degrees in `[-90, 90]`. Must have the same length as `longitudes`.
- ecoregions
(optional `sf` object, default `NULL`). Ecoregion polygon layer to use. If `NULL`, the shipped WWF/TNC layer is loaded via [load_ecoregions()] (result is cached, so passing `NULL` is usually the right choice).